+ Reply to Thread
Results 1 to 3 of 3

How to prompt user to select file to attach to an E-Mail (Excel to Outlook)

  1. #1
    Registered User
    Join Date
    07-04-2013
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    27

    How to prompt user to select file to attach to an E-Mail (Excel to Outlook)

    Hi,

    I have a userform in Excel which contains a button with code that automatically creates and displays, ready for sending an E-Mail.

    However, I want to take the code further and once the E-Mail has been created/displayed, it then prompts the user to select a file from a certain path to then attach to the E-Mail ready for sending.

    I can't seem to work out how to do this last bit, asking the user to select a file to attach.

    Can anyone help with this llast bit of code?

    Cheers,

    TLP.

  2. #2
    Valued Forum Contributor
    Join Date
    03-22-2013
    Location
    Australia,NSW, Wirrimbi
    MS-Off Ver
    Excel 2013
    Posts
    1,057

    Re: How to prompt user to select file to attach to an E-Mail (Excel to Outlook)

    Hi..

    Try this.. it will allow you to see any filetype in the browse Dialogue... if you want.. you can restrict what shows by changing the 4th line of code..


    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    07-04-2013
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: How to prompt user to select file to attach to an E-Mail (Excel to Outlook)

    This worked a treat.

    Thank you!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Macro to prompt user to select date and save file
    By TheLittlePrince in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-04-2013, 08:34 AM
  2. [SOLVED] attach file from folder on c:\ to outlook mail and send
    By cfinch100 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-24-2013, 11:33 AM
  3. Outlook - Save Worksheet as PDF and attach to outlook mail
    By kaurka in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-05-2012, 10:19 AM
  4. code to attach the draft mail in new compose mail as attachment in outlook 2010
    By priya1987 in forum Outlook Programming / VBA / Macros
    Replies: 0
    Last Post: 10-10-2012, 08:38 AM
  5. Prompt user to select file to import
    By Lmsloman in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-19-2009, 07:23 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1