A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Setting up and Configuration
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

File Location Hyperlink



 
 
Thread Tools Display Modes
  #1  
Old May 5th, 2007, 05:40 PM posted to microsoft.public.excel.setup
Aggie G
external usenet poster
 
Posts: 16
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?
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:24 PM.


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