#1   Report Post  
Posted to microsoft.public.excel.setup
external usenet poster
 
Posts: 13
Default File Location Hyperlink

I have an Excel file located on my company's share drive and I am sending the
file location path as a hyperlink in an email. I currently have the file
setup with code that basically will not allow another user to open the file
if someone else is in it. this is the code.

Private Sub Workbook_Open()
If ThisWorkbook.ReadOnly Then
MsgBox "File already in use"
ThisWorkbook.Close savechanges:=False
End If
End Sub

The problem I am having is this: I have created a hyperlink to the location
of this file that I want my managers to access in an email I will send out,
but now the code above doesn't prevent multiple people from accessing the
file. How can I make it so that if someone is already in the file, which they
accessed using the hyperlink in my email, others won't be able to open the
file using the same hyperlink until the first users exits the file?
Reply
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
Wrong Hyperlink location after sorting Lawulm Excel Discussion (Misc queries) 6 November 17th 06 05:30 PM
Hyperlink to paste in other location obiwootenubi Links and Linking in Excel 0 August 30th 06 05:22 AM
Browsing to Hyperlink location Cheri Excel Discussion (Misc queries) 4 July 7th 06 12:10 PM
Hyperlink Locates file regardless of it's location AC Excel Discussion (Misc queries) 1 October 5th 05 11:19 PM
Hyperlink Location Ryan Parker via OfficeKB.com Links and Linking in Excel 6 June 26th 05 08:45 AM


All times are GMT +1. The time now is 05:09 AM.

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

About Us

"It's about Microsoft Excel"