Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a spreadsheet macro running in Workbook 1, that opens Workbook 2,
manipulates some data, copies data from WB2 to WB1, and then closes WB2. How do I get it to just close the workbook, without prompting me to save it with changes? Thanks, John |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
as i recall some like:
ActiveWorkbook.Close savechanges:=True |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi John.
To close the workbook without saving any changes, try: WB2.Close SaveChanges:= False To close the workbook and save any changes, try: WB2.Close SaveChanges:= True --- Regards, Norman "John Viall" wrote in message ... I have a spreadsheet macro running in Workbook 1, that opens Workbook 2, manipulates some data, copies data from WB2 to WB1, and then closes WB2. How do I get it to just close the workbook, without prompting me to save it with changes? Thanks, John |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks, worked perfectly!
"Norman Jones" wrote: Hi John. To close the workbook without saving any changes, try: WB2.Close SaveChanges:= False To close the workbook and save any changes, try: WB2.Close SaveChanges:= True --- Regards, Norman "John Viall" wrote in message ... I have a spreadsheet macro running in Workbook 1, that opens Workbook 2, manipulates some data, copies data from WB2 to WB1, and then closes WB2. How do I get it to just close the workbook, without prompting me to save it with changes? Thanks, John |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Answers to questions posing more questions in a workbook | Excel Worksheet Functions | |||
closing a workbook | Excel Programming | |||
Closing Hidden Workbook when Active Workbook is Closed | Excel Programming | |||
Help with closing down a workbook?? | Excel Worksheet Functions | |||
closing excel after closing a workbook | Excel Programming |