Saving a file

G

Guest

I have a file named "Process Tech Time Sheet Ver2.1.XLS"
I modify it and then want to save it under another name say "jobsave1"

ActiveWorkbook.SaveAs Filename:=jobsave1
ActiveWorkbook.Close
Windows("Process Tech Time Sheet Ver2.1.XLS").Activate
Range("D1").Select
Range("D3").Select

The problem is after I save "jobsave1" I can no longer activate "Process
Tech Time Sheet Ver2.1.XLS"

How do I save "jobsave1" and then return to "Process Tech Time Sheet
Ver2.1.XLS"

oldjay
 
G

Guest

You cannot just activate it again. You have to open it. Easiest would be to
set a variable to the name of the workbook, and then open it using the
variable
 
G

Guest

You will need to close down JobSave1 and re-open Process Tech Time Sheet
Ver2.1.XLS. When you do the Save As (the same as if you do a normal save as
not through code) your original file is no longer open...
 
G

Guest

Sorry you could also do SaveCopyAs (instead of just SaveAs) at which point
you will have both the original and the new file open...
 
G

Guest

"SaveCopyAs" did the trick - Thanks

Jim Thomlinson said:
Sorry you could also do SaveCopyAs (instead of just SaveAs) at which point
you will have both the original and the new file open...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Date Format 7
Runtime 1004 Error Help Request 1
Copy Data from Closed File to Existing File 0
Format problem 10
ehandler 2
File name being changed 2
Ehandler 1
Name work sheet 2

Top