Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default workbook open read only without prompt

Hello,

I an running several macro's which update a log file.
This log file is shared between the other spreadsheets.
As they could be updating the log file at the same time I am using thi
below code

logreadonly:
Workbooks.Open Filename:="J:\Collateral\Data Quality\Dail
Reports\Autorun reports\datafiles(do not edit)\log file.xls"
If ActiveWorkbook.ReadOnly Then
ActiveWorkbook.Close SaveChanges:=False
Application.Wait waittime
GoTo logreadonly
End If


(waittime = 2 secs)

However, I am still getting the prompt to say that the file is open an
would I like to open it as read only or be notified.

Any Idea's on how I can stop this message ?

Le

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
JK JK is offline
external usenet poster
 
Posts: 78
Default workbook open read only without prompt

Lee,

You might try Application.DisplayAlerts=False
Regards,
Jim Kobzeff
"turbogoat " wrote in message
...
Hello,

I an running several macro's which update a log file.
This log file is shared between the other spreadsheets.
As they could be updating the log file at the same time I am using thie
below code

logreadonly:
Workbooks.Open Filename:="J:\Collateral\Data Quality\Daily
Reports\Autorun reports\datafiles(do not edit)\log file.xls"
If ActiveWorkbook.ReadOnly Then
ActiveWorkbook.Close SaveChanges:=False
Application.Wait waittime
GoTo logreadonly
End If


(waittime = 2 secs)

However, I am still getting the prompt to say that the file is open and
would I like to open it as read only or be notified.

Any Idea's on how I can stop this message ?

Lee


---
Message posted from http://www.ExcelForum.com/



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
Remove Prompt to Open File as Read-Only (Excel 2007) kerryb13 Excel Discussion (Misc queries) 3 April 19th 23 02:13 PM
Use hyperlink to open workbook read only? Clif McIrvin[_2_] Excel Discussion (Misc queries) 3 April 9th 10 02:48 AM
Excel 2007 prompt to open file as read only SEllis Excel Discussion (Misc queries) 1 March 4th 10 06:29 PM
Open Workbook to Protected/Read-only Warning JSnow Excel Discussion (Misc queries) 0 March 9th 09 03:27 PM
Need VBA Code to Open a Workbook in read only zulfer7 Excel Discussion (Misc queries) 1 July 10th 06 11:00 PM


All times are GMT +1. The time now is 12:58 PM.

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"