+ Reply to Thread
Results 1 to 9 of 9

prompt save as then send in email

  1. #1
    Registered User
    Join Date
    11-07-2013
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2010
    Posts
    51

    prompt save as then send in email

    I need to create a one click button to do the following.

    Two sheets (worksheet 1 and worksheet 2) deleted from the workbook "file A"
    Prompt a save as for "file A mm-dd-yy" for todays date. (needs to have no password and file A has one, no read only prompt, and no backup needed)
    Attach the new file (file A mm-dd-yy) into an email.

    I have listed the code I have at this point, although, I am having trouble with the save as portion.

    I have used application.getsaveasfilename before I used the below, and though it allowed me to input the file name I needed, it didn't save permanently.

    Also is there a way to do this without having to type in the file name at each save, just save as the file name with today's date in mm-dd-yy format?

    I just can't get it. Can you please help?

    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel 2010
    Posts
    1,964

    Re: prompt save as then send in email

    hi,
    try this
    Please Login or Register  to view this content.
    Regards, John55
    If you have issues with Code I've provided, I appreciate your feedback.
    In the event Code provided resolves your issue, please mark your Thread as SOLVED.
    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

    ...enjoy -funny parrots-

  3. #3
    Registered User
    Join Date
    11-07-2013
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2010
    Posts
    51

    Re: prompt save as then send in email

    It does exactly what I need, only thing I need to change is the file format.
    It saves as
    file a.xlsm-mm-dd-yyyy.xls

    I need it to be
    file a mm-dd-yy.xls

    Not really sure how I would specify to drop old file path before the date. thanks!!!

  4. #4
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel 2010
    Posts
    1,964

    Re: prompt save as then send in email

    hi,
    try this
    Please Login or Register  to view this content.
    Last edited by john55; 07-03-2014 at 01:26 AM.

  5. #5
    Registered User
    Join Date
    11-07-2013
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2010
    Posts
    51

    Re: prompt save as then send in email

    That solved it.!! thank you so much.

  6. #6
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel 2010
    Posts
    1,964

    Re: prompt save as then send in email

    you're welcome! glad you solved it!

  7. #7
    Registered User
    Join Date
    11-07-2013
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2010
    Posts
    51

    Re: prompt save as then send in email

    I know I marked this as solved, but I am having trouble figuring out how to close the file before it prompts the email, as it will be a different file name each time. To say close file a .... (using the new date each time or just to say close any open workbook that contains the words "file a") Sorry to keep bothering you, but you seem to know quite a bit more than I and I love to learn as I go.

  8. #8
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel 2010
    Posts
    1,964

    Re: prompt save as then send in email

    Hi,
    first mark your thread as "unsolved", then try this, not sure what you want to do but see if it helps you
    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    11-07-2013
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2010
    Posts
    51

    Re: prompt save as then send in email

    That's it!

    I don't foresee any additional needs from this. but will keep unsolved until I am sure I am done this time.

+ 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. outlook vba to prompt user to save email to hard drive if sent to a particular address
    By ohexcel_ineedu in forum Outlook Programming / VBA / Macros
    Replies: 0
    Last Post: 02-19-2014, 10:49 PM
  2. [SOLVED] Send Email With Prompt for Subject & Body
    By nrichardson in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-25-2012, 04:11 PM
  3. How could I save as pdf and send email
    By john55 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-27-2011, 05:13 AM
  4. VBA + Excel - Save ActiveSheet as hmt then Send Email
    By mariocatch in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-13-2007, 10:52 PM
  5. File Save w/email prompt
    By Merlin54k in forum Excel General
    Replies: 12
    Last Post: 12-12-2006, 05:43 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