+ Reply to Thread
Results 1 to 4 of 4

I have a Save as macro but I need to keep the original open at the same time

  1. #1
    Forum Contributor
    Join Date
    09-05-2007
    Posts
    148

    I have a Save as macro but I need to keep the original open at the same time

    I have a macro that saves my currently open file in a specific location and with a specific name based on certain conditions in a cell but i want the original file to be open at the same time.

    My end goal is to have an open book with a load of data, copy the whole workbook (I don't know how to do this), make any changes (e.g. delete a couple of rows-I can do this) and then save as an xlsm (I have code to do this) and finally close the book. Then the only open book would be the original with all the data. I would do this multiple times based on what data is deleted (e.g data with multiple names, I would have one version for each name).

    The only part I cannot do so creating a copy of my current workbook to make arrangements.

    Here is my code to save the file.

    Please Login or Register  to view this content.
    Thanks

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: I have a Save as macro but I need to keep the original open at the same time

    Have a look at using SaveCopyAs rather than SaveAs.

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Forum Contributor
    Join Date
    09-05-2007
    Posts
    148

    Re: I have a Save as macro but I need to keep the original open at the same time

    That does the job of saving another copy, but how do I open it to make changes and then save?

  4. #4
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: I have a Save as macro but I need to keep the original open at the same time

    Please Login or Register  to view this content.
    Will take a copy of all the sheets into a new workbook you can then just work on that and save it.

    Dom

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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