DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2007
    Sterling Heights, Michigan

    Excel VBA - Attach A File To An Excel Spreadsheet

    I see what I can insert an object, and that object can be something like a Word document or WordPad document or the like. This would actually insert the contents into my spreadsheet (at least that is the way I'm reading it.)

    However, is there a way to "attach" a file in the same way we can attach a file to an EMail message?

  2. #2
    Join Date
    Apr 2007
    Sterling Heights, Michigan
    I think I might have it.

    When you insert object, pick the tab 'create from file', browse to the file you want, then click the checkbox labeled 'Display as ICON' before clicking ok.

    Now, all I need to do is perform this while running a macro, and I should have the code I need.

Similar Threads

  1. Replies: 0
    Last Post: 05-15-2008, 04:24 PM
  2. excel vba file search
    By batman61 in forum VB Classic
    Replies: 5
    Last Post: 02-11-2008, 01:51 PM
  3. How to Attach a file in VB
    By azhagiri in forum VB Classic
    Replies: 11
    Last Post: 01-24-2007, 02:43 AM
  4. NullPointerException when reading text file
    By Andrew McLellan in forum Java
    Replies: 3
    Last Post: 05-09-2001, 05:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.