Saving a file

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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
 
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...
 
Sorry you could also do SaveCopyAs (instead of just SaveAs) at which point
you will have both the original and the new file open...
 
"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
ehandler 2
Format problem 10
Ehandler 1
File name being changed 2
Runtime 1004 Error Help Request 1
Copy Data from Closed File to Existing File 0
Repeating the same routine 1

Back
Top