Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 337
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 268
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 337
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Saving Excel 2007 file in 2003 creates very large file Jon Pearce Excel Discussion (Misc queries) 2 July 16th 09 07:20 PM
Excel should let me sort the file directory when saving a file Beanee70 Excel Discussion (Misc queries) 0 March 14th 06 07:03 AM
Saving multi-tab excel file created from comma delimited text file Marcus Aurelius Excel Programming 2 December 19th 05 05:16 PM
How do I stop Excel 2000 from saving file history from file that . Cathy Excel Discussion (Misc queries) 0 March 29th 05 03:27 PM
saving an excel file as an ASCII text file without delimiters Sewellst Excel Programming 4 January 7th 05 01:41 PM


All times are GMT +1. The time now is 04:58 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"