+ Reply to Thread
Results 1 to 5 of 5

How do I add code that saves an xlsx copy of the entire work book

  1. #1
    Forum Contributor
    Join Date
    01-09-2016
    Location
    Surrey B.C.
    MS-Off Ver
    2013
    Posts
    155

    How do I add code that saves an xlsx copy of the entire work book

    The following creates a new folder, then saves multiple PDF of specific sheets from that book inside the folder.
    I wish for it to save an xlsx copy of the entire book in the same "newy created folder"

    Please Login or Register  to view this content.
    Currently my work around uses "Call RunSave". Which essentially Calls a code that saves the entire book in a previous folder.
    Here is that code
    Please Login or Register  to view this content.
    Any help would be appreciated

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: How do I add code that saves an xlsx copy of the entire work book

    Select the developer tab and start the macro recorder

    Save your workbook as .xls, create the new folder if you want as part of the save process

    Stop the macro recorder.

    Edit the recording and ann it into your code.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,565

    Re: How do I add code that saves an xlsx copy of the entire work book

    Change references (file name, path, drive) as required.
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    01-09-2016
    Location
    Surrey B.C.
    MS-Off Ver
    2013
    Posts
    155

    Re: How do I add code that saves an xlsx copy of the entire work book

    Greetings mehmetcik

    I have used the macro recorder.

    The problem I am having is putting it into the above code so that it "saves it in the newly created folder" that the above code already creates.

    It works for the PDF copies.

    But for some reason I can not add a an xlsx of the entire work book.

    Thank you and more help would be appreciated

  5. #5
    Forum Contributor
    Join Date
    01-09-2016
    Location
    Surrey B.C.
    MS-Off Ver
    2013
    Posts
    155

    Re: How do I add code that saves an xlsx copy of the entire work book

    Greetings jolivanes


    I have tried your suggestion

    The problem I am having is putting it into the above code so that it "saves it in the newly created folder" that the above code already creates.

    It works for the PDF copies.

    But for some reason I can not add a an xlsx of the entire work book.

    Thank you and more help would be appreciated

+ 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. Force open file and Copy to Another sheet Work book(xlsm to xlsx)-
    By lotto009 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-27-2019, 07:35 AM
  2. Replies: 1
    Last Post: 05-04-2019, 06:31 PM
  3. [SOLVED] Need someone to edit Modify Macro's to work on entire work book
    By MarkKil in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-24-2018, 01:01 AM
  4. Replies: 0
    Last Post: 05-19-2017, 12:05 PM
  5. Current work book .xlsm convert to xlsx work book then mail
    By Vcare in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-26-2016, 09:47 AM
  6. (F9) VBA code to recalculate entire work-book
    By domgilberto in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-27-2016, 06:31 AM
  7. VBA Code for populating cells from one Work Book A to another Work Book with condition
    By ray.kanata in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 06-22-2015, 03:46 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