Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Opening a workbook, maintaining "read-only" prompt

Status
Not open for further replies.

Zenkai

Programmer
Dec 17, 2002
31
US
I am opening a workbook using

workbooks.open("book.xls")

If it is already open, excel is opening it as read only. I would like for it to instead display the dialog box wherein the user can choose whether to open the book "read only" or "notify" or "cancel." How can that work?

-Nick
 
Looking at the quick info in the vba editor, I see that notify is a value to decalare...but I dont know the syntax or the value that propts the user...try something like

Workbooks.Open ("path\workbook_name.xls"), , , , , , , , , , notify:=1

or maybe even notify:=0 or -1 ?
 
None of the workbooks.open declarations will work here. Notify will send the workbook into the notification queue if indeed it is read-only, but will not bring up the dialog box, as I wanted.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top