Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 60
Default Open Read Only

just add 2 commas to the end and a true for read only and you got it.
--
-John Northwest11
Please rate when your question is answered to help us and others know what
is helpful.


"Jason" wrote:

I have some code that opens another workbook. I would like to open the
workbood in read only mode regardless of whether another user is in the
target workbook, but I do not want the read only prompt box to pop up when
the code runs. Can someone please tell my how I can adjust this code so that
I will not get the prompt box. Thanks.

Set bk = Workbooks.Open(Filename:="P:\Test\Sample Workbook.xls")

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
VBA open xls as read-only hommer Excel Programming 3 March 10th 06 03:06 AM
VBA open xls as Read-Only? hommer Excel Programming 1 March 9th 06 08:10 PM
VBA open xls as Read-Only? hommer Excel Programming 0 March 9th 06 04:59 PM
open as read only Newbie80[_11_] Excel Programming 1 August 10th 05 02:28 PM
Open as read-only Dave Excel Worksheet Functions 0 July 26th 05 01:21 PM


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