Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Text file closure
Using VBA I have copied data from a .xls file to a second Excel file
that I have saved as .txt. Having already saved the file is there anyway that I can suppress the message "Do you wish to save the changes made to ' .... .txt'?" when I use the command ActiveWindow.Close to remove the text file from my workspace? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Text file closure
Try this:
Activewindow.Close saveChanges:=False (dsan) wrote in message . com... Using VBA I have copied data from a .xls file to a second Excel file that I have saved as .txt. Having already saved the file is there anyway that I can suppress the message "Do you wish to save the changes made to ' .... .txt'?" when I use the command ActiveWindow.Close to remove the text file from my workspace? |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Text file closure
As a follow up to my first post, that code Activewindow.close
savechanges:=false discards any changes you have made when you close the file. So you have to make sure that you have saved the file with any changes that you want to keep! (dsan) wrote in message . com... Using VBA I have copied data from a .xls file to a second Excel file that I have saved as .txt. Having already saved the file is there anyway that I can suppress the message "Do you wish to save the changes made to ' .... .txt'?" when I use the command ActiveWindow.Close to remove the text file from my workspace? |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Text file closure
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Need closure | New Users to Excel | |||
Save document on closure | Excel Discussion (Misc queries) | |||
Unexpected closure of Excel | Links and Linking in Excel | |||
Mandatory cell check before closure | Excel Programming | |||
Clipboard data at closure of a workbook | Excel Programming |