Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I have a workbook that is used to convert data copied from various customer screens on our company mainframe. Problem is, people are copying the file to their pc's and not using the most up to date version. Can anybody assist with some code that looks a the path of the file being tested. If it is not the path I specify, alert the user and close the workbook? Thank you in advance for any assistance you can provide with this problem. Alan |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If lcase(Activeworkbook.Path) < "your path" Then
Msgbox "Please open the latest version from ..." ActiveWorkbook.Close False End If Enter "your path" all lowercase (VB is case sensitive for string comparisons by default). -- Jim wrote in message oups.com... | Hi, | | I have a workbook that is used to convert data copied from various | customer screens on our company mainframe. Problem is, people are | copying the file to their pc's and not using the most up to date | version. | | Can anybody assist with some code that looks a the path of the file | being tested. If it is not the path I specify, alert the user and close | the workbook? | | Thank you in advance for any assistance you can provide with this | problem. | | Alan | |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
audio alert when a shared workbook is saved by any user | Excel Discussion (Misc queries) | |||
user cannot access his share workbook after opening network path. | Excel Discussion (Misc queries) | |||
How do I add an alert message upon a user closing the workbook? | Excel Discussion (Misc queries) | |||
Incorrect resolution of path to XLA file when user has roaming prf | Excel Programming | |||
Open file - How to test the path ? | Excel Programming |