Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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... |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub ReadOnly()
Workbooks.Open Filename:="E:\EXCEL\MySpreadSheet.xls", ReadOnly:=True End Sub -- Mike Q. " wrote: 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... |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
That's the same thing I had before only you aren't catching the Workbook
object that is returned from the Open command. "Mike Q." wrote: Sub ReadOnly() Workbooks.Open Filename:="E:\EXCEL\MySpreadSheet.xls", ReadOnly:=True End Sub -- Mike Q. " wrote: 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... |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to: Open closed workbook/Search data tables/Return data to open workbook | Excel Discussion (Misc queries) | |||
Opening Excel, Book1 opens, remains open with other workbook open | Excel Discussion (Misc queries) | |||
excel 2003 saved file will not open without a blank workbook open | Excel Discussion (Misc queries) | |||
Excel workbook does not open in open window on desktop | Excel Discussion (Misc queries) | |||
Open a password protected excel workbook from second workbook to fetch data using dynamic connection | Excel Programming |