Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Validate WorkBook name
I want to use the "Before Save" event to force users to save a template with
a certain naming convention. (The name must contain the words Air Container) Is this possible. For example in the Before Save event procedure it may say something like If WorkBook.Name < "*Air Container*" (if true then it would prevent the save from completing.) Thanks in advance AD108 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Validate WorkBook name
Bob Philips gave me an excellent solution to a similar problem. See thread
"SaveAs with a pre-defined filename" in this group! Regards, Stefi €žAD108€ ezt Ã*rta: I want to use the "Before Save" event to force users to save a template with a certain naming convention. (The name must contain the words Air Container) Is this possible. For example in the Before Save event procedure it may say something like If WorkBook.Name < "*Air Container*" (if true then it would prevent the save from completing.) Thanks in advance AD108 |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Validate WorkBook name
On Tue, 27 Jun 2006 20:08:17 -1000, AD108 wrote:
I want to use the "Before Save" event to force users to save a template with a certain naming convention. (The name must contain the words Air Container) Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean) If Not (ThisWorkbook.Name Like "*Air Container*") Then Cancel = True End Sub -- PL |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Validate WorkBook name
Thanks alot
"Piotr Lipski" wrote in message ... On Tue, 27 Jun 2006 20:08:17 -1000, AD108 wrote: I want to use the "Before Save" event to force users to save a template with a certain naming convention. (The name must contain the words Air Container) Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean) If Not (ThisWorkbook.Name Like "*Air Container*") Then Cancel = True End Sub -- PL |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
validate | Excel Discussion (Misc queries) | |||
Looking up a name and then being able to validate it | Excel Worksheet Functions | |||
How to validate list data from a different workbook | Excel Discussion (Misc queries) | |||
Validate Workbook Name | Excel Programming | |||
Validate non-blank fields in Excel workbook | Excel Programming |