Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Using Office 2003 and Windows XP;
I have an unsaved copy of a template file opened in memory; now I want to control how the user exits. How can I determine if the file is dirty? Note that I cannot use "If ThisWorkbook.Saved = True" because template copies are never saved when they are first opened; what I need to know is whether the user has made any changes; Is there a neat and tidy command that will do this without having to code checks against 30 controls looking for a change? Please answer, "Why yes there is..." and then post example VBA. You help is greatly appreciated. Thanks for your assistance. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
One way:
You can put this in the template's ThisWorkbook code module... Private Sub Workbook_Open() Me.Saved = True End Sub In article , XP wrote: Using Office 2003 and Windows XP; I have an unsaved copy of a template file opened in memory; now I want to control how the user exits. How can I determine if the file is dirty? Note that I cannot use "If ThisWorkbook.Saved = True" because template copies are never saved when they are first opened; what I need to know is whether the user has made any changes; Is there a neat and tidy command that will do this without having to code checks against 30 controls looking for a change? Please answer, "Why yes there is..." and then post example VBA. You help is greatly appreciated. Thanks for your assistance. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I determine if a workbook is a template? | Excel Programming | |||
Removing Dirty Data From an Imported DOS database | Excel Programming | |||
Template track phone traffic to determine weekly, monthly trends. | New Users to Excel | |||
using Dirty Method | Excel Programming | |||
How to tell if a range or cell is dirty | Excel Programming |