Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Saving a file
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 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Saving a file
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 "Oldjay" wrote: 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 |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Saving a file
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... -- HTH... Jim Thomlinson "Oldjay" wrote: 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 |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Saving a file
Sorry you could also do SaveCopyAs (instead of just SaveAs) at which point
you will have both the original and the new file open... -- HTH... Jim Thomlinson "Jim Thomlinson" wrote: 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... -- HTH... Jim Thomlinson "Oldjay" wrote: 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 |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
Saving a file
"SaveCopyAs" did the trick - Thanks
"Jim Thomlinson" wrote: Sorry you could also do SaveCopyAs (instead of just SaveAs) at which point you will have both the original and the new file open... -- HTH... Jim Thomlinson "Jim Thomlinson" wrote: 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... -- HTH... Jim Thomlinson "Oldjay" wrote: 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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Saving Excel 2007 file in 2003 creates very large file | Excel Discussion (Misc queries) | |||
Excel should let me sort the file directory when saving a file | Excel Discussion (Misc queries) | |||
Saving multi-tab excel file created from comma delimited text file | Excel Programming | |||
How do I stop Excel 2000 from saving file history from file that . | Excel Discussion (Misc queries) | |||
saving an excel file as an ASCII text file without delimiters | Excel Programming |