OPen excel workbook...

G

Guest

I want to open an excel workbook as read-only and suppress any and all
user-prompt messages - How can I do this?

Here's what I have tried:
Set xlReportWkbk = Workbooks.Open(strPath & strReportWkbk, , xlReadOnly, , ,
, True, , , False, False)

But I still get prompted is the targeted workbook is already open...
 
G

Guest

Sub ReadOnly()
Workbooks.Open Filename:="E:\EXCEL\MySpreadSheet.xls", ReadOnly:=True
End Sub
 
G

Guest

That's the same thing I had before only you aren't catching the Workbook
object that is returned from the Open command.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top