Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 270
Default Another Save Question

The following 1) Save a workbook 'as' and then closes it - followed by 2)
the original book 'Not Saved' and then closing.
Is it possible to have the workbook 'saved as' without it closing and still
have the original book close without saving


ThisWorkbook.SaveCopyAs Filename:="Personal Data-" & inputText & ".xls"

ThisWorkbook.Close SaveChanges:=False

Sandy


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,355
Default Another Save Question

I'm confused as to what you are asking. When you execute the first line, it
saves "ThisWorkbook" with a new name. The workbook name that Excel knows is
the original workbook name.

Basically, you're saying that you want to have a file call "Personal ..."
opened after it's saved.

Try something like this

You'll need to enter the entire file path where it has filename.

Dim oWB as workbook
set oWB = workbooks.open(filename,UpdateLinks:=False)


Then you'll have a workbook called ThisWorkbook and another called oWB

"Sandy" wrote:

The following 1) Save a workbook 'as' and then closes it - followed by 2)
the original book 'Not Saved' and then closing.
Is it possible to have the workbook 'saved as' without it closing and still
have the original book close without saving


ThisWorkbook.SaveCopyAs Filename:="Personal Data-" & inputText & ".xls"

ThisWorkbook.Close SaveChanges:=False

Sandy



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
Save As and save current numbers not the actual formulas and links Frank Menard Excel Discussion (Misc queries) 2 November 9th 06 09:18 PM
"Save As" Question Joe Miller Excel Discussion (Misc queries) 2 December 31st 05 05:48 PM
save as text question skiier Excel Discussion (Misc queries) 4 August 19th 05 04:35 PM
when i save xls file, debug script is running and canno't save fil Imtiaz Excel Discussion (Misc queries) 1 July 16th 05 03:47 PM
Save Macro - yet another question Roger Excel Discussion (Misc queries) 4 April 14th 05 09:28 PM


All times are GMT +1. The time now is 11:50 PM.

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

About Us

"It's about Microsoft Excel"