Home |
Search |
Today's Posts |
#8
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Schatzi has brought this to us :
On May 3, 3:29*pm, GS wrote: Another approach to closing without saving (and thus not raising the alert) is... * WorkbookObject.Close SaveChanges:=False Of course, 'WorkbookObject' still requires a fully qualified ref be 'Set' to the workbook being closed. -- Garry Free usenet access athttp://www.eternal-september.org ClassicVB Users Regroup! comp.lang.basic.visual.misc I don't know what you mean by fully qualified reference. I imagine that since I do not know what that means, I must not have done that correctly. Your code suggests that 'WorkbookObject' refs a specific open workbook, and so this object variable should have been initialized at some point elsewhere in your code using the 'Set' statement something like... Set WorkbookObject = Workbooks("Filename.xls") Otherwise, 'WorkbookObject' means nothing to VBA. -- Garry Free usenet access at http://www.eternal-september.org ClassicVB Users Regroup! comp.lang.basic.visual.misc |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How can just opening & closing a workbook prompt the Save? dialog? | Excel Programming | |||
disable save as dialog box | Excel Programming | |||
disable save and saveas from menubar and save via command button | Excel Programming | |||
closing read-only without save dialog box appearing | Excel Programming | |||
Disable Saveas Dialog | Excel Programming |