Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have an Excel 2000 workbook with a volitle function that is usually
only opened for viewing. To avoid getting prompted to save the workbook when closing it, I find I can put the following code on the workbook code page: Private Sub Workbook_Open() ThisWorkbook.Saved = True End Sub The volatile function evidently is called before the Workbook_Open event fires, so it is possible to open and close the workbook without being prompted to save. It seems to me that this is safe, in that if any changes are made to the workbook after it is opened, the Saved property will be set back to False, and the user will be prompted to save. But since I am fairly new to programming VB and Excel, I would like to know if I am overlooking any negative effects of including this in a project. TIA Michael Purcell |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excell - two conditions count if factors are true when negative nu | Excel Worksheet Functions | |||
Function to return True/False if all are validated as True by ISNU | Excel Worksheet Functions | |||
Publish to Web, Zero Values setting not saved | Excel Programming | |||
Setting Cancel = True in WorkbookBeforePrint | Excel Programming | |||
error with setting "Items.Visible = True" | Excel Programming |