Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Save as, but leave original open

Status
Not open for further replies.

Groves22

Technical User
Jan 29, 2009
102
US
Hey all...
I am trying to save a file with a different name, but keep the original open.

I guess the way it works now is:
File 1 save as File 2. The open file is now File 2, while File 1 is still on the drive.

Is there a way to get File 1 to save as File 2, with both File 1 and File 2 being open.

File 1 is an extremely large file, so it takes 5-10 minutes to open. That is why I want to know if I can keep it open, while saving it as something else.

Thanks
 
OK... I guess I will just have macro open new file and copy/paste in there....

Thanks!
 


hi,
Code:
    Dim oFSO, oFolder

    Set oFSO = CreateObject("Scripting.FileSystemObject")
    Set oFolder = oFSO.GetFolder(ThisWorkbook.Path)

    ThisWorkbook.Save

    oFSO.CopyFile ThisWorkbook.FullName, "FullPath\YourNewSaveAs.xls"

    Set oFolder = Nothing
    Set oFSO = Nothing

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
You don't say what app you're using. Excel has a [blue][tt]SaveCopyAs[/tt][/blue] Function that does what you want; Word, unfortunately, does not.

Enjoy,
Tony

------------------------------------------------------------------------------------
We want to help you; help us to do it by reading this: Before you ask a question.

I'm working (slowly) on my own website
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top