Closed Thread
Results 1 to 3 of 3

Browse for a file edit the file then attach it to an email

  1. #1
    Forum Contributor
    Join Date
    04-05-2010
    Location
    Lakewood, IL
    MS-Off Ver
    Excel 2016
    Posts
    405

    Browse for a file edit the file then attach it to an email

    I have a macro that has the user browse for a file which I name "ManualForm" I do some edits to that file then I want to save it and email it as an attachment to an email. Here is the browsing code:
    Please Login or Register  to view this content.
    Then after my edits I use this code to attach it as an email but it fails, where "Cover" is another open workbook that contain information on where to: and cc: send the email.
    Please Login or Register  to view this content.
    Any idea why it will not attach the file?

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Browse for a file edit the file then attach it to an email

    judging by your code it only represents the fill name

    when you use attachments.add ....
    manualform needs to represent the the full file system path with a file name

    try adding the path and extension into the line and see if it works
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2506 Win 11
    Posts
    24,772

    Re: Browse for a file edit the file then attach it to an email

    Welcome to the Forum, unfortunately:

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    Thread Closed.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. I need VBA to save file and attach file to email based on conditional statements
    By jcrowe31 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-01-2014, 09:41 AM
  2. [SOLVED] Browse for file and add another attachment to email
    By guitarsweety in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-05-2014, 06:38 PM
  3. How to browse & Attach a file to a userform in Excel?
    By rajat518 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-12-2013, 05:04 AM
  4. Auto Attach File to Email
    By cmgervin in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-12-2010, 03:59 PM
  5. Email workbook AND attach a separate file to the email
    By sgreni in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-15-2009, 06:48 PM
  6. Zip file and attach to email automatically
    By mhart210 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-26-2006, 01:29 PM
  7. [SOLVED] Browse and attach file in a UserForm
    By Jeroen Kluytmans in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-07-2005, 06:06 AM

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