+ Reply to Thread
Results 1 to 4 of 4

Macro: Save as PDF with automatic updated Date and time in the filename

  1. #1
    Registered User
    Join Date
    04-12-2020
    Location
    Melbourne
    MS-Off Ver
    2016
    Posts
    15

    Macro: Save as PDF with automatic updated Date and time in the filename

    Good afternoon family,

    I hope someone can help me out with this macro. I have a workbook with 4 different sheets: Sheet 1, Sheet 2, Sheet 3 and sheet 4. In each sheet i have two buttons, one to print the sheet and the other one to save as PDF. I need to save the PDF with this name: "Sheet_1_date_time.pdf in Sheet 1 folder in my computer. Same as for Sheet 2, 3 and 4. I'm a bit lost with this macro so if someone could help me out I'd really appreciate it.

    Thanks in advance.

    Regards

  2. #2
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,102

    Re: Macro: Save as PDF with automatic updated Date and time in the filename

    to get the date time after the fie name,use the following line of code:

    Please Login or Register  to view this content.
    Let us know if you have questions.

  3. #3
    Registered User
    Join Date
    04-12-2020
    Location
    Melbourne
    MS-Off Ver
    2016
    Posts
    15

    Re: Macro: Save as PDF with automatic updated Date and time in the filename

    i'm so sorry for the late reply. i was offline for a while.

    Yeah! that's great! thank you so much!

  4. #4
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,102

    Re: Macro: Save as PDF with automatic updated Date and time in the filename

    If that takes care of your original question, please select*Thread Tools*from the menu link above and mark this thread as SOLVED.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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] How to iterate lines of excel to save as pdf w/ updated filename
    By yeqiu in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-20-2020, 04:15 PM
  2. Replies: 1
    Last Post: 12-08-2015, 12:59 PM
  3. Macro to save file with today's date in the filename
    By TimmerSuds in forum Excel General
    Replies: 1
    Last Post: 06-16-2014, 03:16 PM
  4. Save as workbook with date and time in filename
    By Undeveloped in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-13-2013, 05:08 PM
  5. [SOLVED] macro to add system date to filename during save
    By paintballlovr in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-12-2013, 02:37 PM
  6. Macro save with referenced filename and time
    By rockhunter in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-11-2011, 05:36 PM
  7. Date Filename Save as Dialog Macro Thingy!!!!!!
    By Cobbcouk in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-31-2006, 01:50 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