Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 173
Default Pop up Read Only and Existing User !

Dear Expert,
Need to open a file from share drive.
Normally, it would pop a READ ONLY message if there is someone usigng it
already.
But I use VB script to open and run that file.
I can't see the read only warning ...
Is it possible to force read only windows (if any) as well as pop up a
windows saying who is using it
Thanks
Elton
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Pop up Read Only and Existing User !

This will open the file in read only:

Workbooks.Open Filename:=MyFile, ReadOnly:=True

I'm not sure why you would need to see who has the file open if you want to
open it as read only but make sure you have display alerts turned on
(Application.DisplayAlerts = True) and step through the code to see what
happens when someone else has got the file open.

You can also add a Notify to the File Open command:

Workbooks.Open Filename:=MyFile, ReadOnly:=True, Notify:=True

But that kinda defeats the purpose of opening as Read Only to start with.

"Elton Law" wrote:

Dear Expert,
Need to open a file from share drive.
Normally, it would pop a READ ONLY message if there is someone usigng it
already.
But I use VB script to open and run that file.
I can't see the read only warning ...
Is it possible to force read only windows (if any) as well as pop up a
windows saying who is using it
Thanks
Elton

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
How can Excel user preferences be imported from an existing PC? memorypowers Setting up and Configuration of Excel 1 July 25th 07 10:13 PM
How do I read unknown values from an existing chart? Thallos Charts and Charting in Excel 2 July 10th 07 10:32 PM
Set as read only based on user name. skuzapo Excel Programming 1 October 11th 05 09:33 PM
Set as read only based on user name. swatsp0p[_26_] Excel Programming 0 October 11th 05 08:32 PM
Can I set up a worksheet as read only for one user Classic Excel Programming 1 December 7th 04 04:18 PM


All times are GMT +1. The time now is 04:54 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"