Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Save As and save current numbers not the actual formulas and links | Excel Discussion (Misc queries) | |||
"Save As" Question | Excel Discussion (Misc queries) | |||
save as text question | Excel Discussion (Misc queries) | |||
when i save xls file, debug script is running and canno't save fil | Excel Discussion (Misc queries) | |||
Save Macro - yet another question | Excel Discussion (Misc queries) |