Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Turning off alerts in VBA


I have a huge bit of VBA that includes some open worksheet functions.

I need to be able to turn-off or ignore the messages that come u
asking if I want to open the file as read only etc.

I want to open all files as read only.


any ideas

--
matp
-----------------------------------------------------------------------
matpj's Profile: http://www.excelforum.com/member.php...fo&userid=2107
View this thread: http://www.excelforum.com/showthread.php?threadid=48311

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Turning off alerts in VBA

Use the readonly argument in the worksheet.Open method. You won't be
prompted if you provide the answer.

--
Regards,
Tom Ogilvy

"matpj" wrote in
message ...

I have a huge bit of VBA that includes some open worksheet functions.

I need to be able to turn-off or ignore the messages that come up
asking if I want to open the file as read only etc.

I want to open all files as read only.


any ideas?


--
matpj
------------------------------------------------------------------------
matpj's Profile:

http://www.excelforum.com/member.php...o&userid=21076
View this thread: http://www.excelforum.com/showthread...hreadid=483117



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Turning off alerts in VBA

How about:

Application.DisplayAlerts = False

--
Peder Myhre


"matpj" wrote:


I have a huge bit of VBA that includes some open worksheet functions.

I need to be able to turn-off or ignore the messages that come up
asking if I want to open the file as read only etc.

I want to open all files as read only.


any ideas?


--
matpj
------------------------------------------------------------------------
matpj's Profile: http://www.excelforum.com/member.php...o&userid=21076
View this thread: http://www.excelforum.com/showthread...hreadid=483117


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
Alerts Mark Excel Discussion (Misc queries) 2 September 9th 09 03:01 PM
Alerts Mohamed[_2_] Excel Discussion (Misc queries) 1 December 31st 08 02:10 PM
Alerts? audiophile New Users to Excel 4 December 29th 05 02:16 PM
alerts peter Excel Programming 0 January 27th 05 07:34 PM
alerts peter Excel Programming 0 January 25th 05 12:52 AM


All times are GMT +1. The time now is 11:08 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"