LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default Test for file path, alert user and close workbook

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
|


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
audio alert when a shared workbook is saved by any user Bob W Excel Discussion (Misc queries) 4 September 10th 08 02:03 AM
user cannot access his share workbook after opening network path. phil Excel Discussion (Misc queries) 0 September 26th 06 04:48 PM
How do I add an alert message upon a user closing the workbook? ehoskins Excel Discussion (Misc queries) 1 July 12th 06 10:48 PM
Incorrect resolution of path to XLA file when user has roaming prf Carl L Excel Programming 0 April 21st 05 08:02 PM
Open file - How to test the path ? Alex St-Pierre Excel Programming 3 February 7th 05 06:36 PM


All times are GMT +1. The time now is 10:51 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"