Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 59
Default Turing off warnings

I often use the following in Access code to prevent msg's appearing when I'm
running a sequence.

DoCmd.SetWarnings False

Does anyone know if a similar bit of language works for Excel in VBA? I've
tried the above but Excel doesn't appaer to like it.

When I run the code I am copying data from several locations and it keeps
asking if I want to overright the existing data.

Any help appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 142
Default Turing off warnings

On Mar 23, 6:37 am, Graeme wrote:
I often use the following in Access code to prevent msg's appearing when I'm
running a sequence.

DoCmd.SetWarnings False

Does anyone know if a similar bit of language works for Excel in VBA? I've
tried the above but Excel doesn't appaer to like it.

When I run the code I am copying data from several locations and it keeps
asking if I want to overright the existing data.

Any help appreciated.


DisplayAlerts = False

but when you're done with the code, be sure to turn it back on...

DisplayAlerts = True

Rob

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Turing off warnings

I think Rob meant:

application.displayalerts = false
'....
application.displayalerts = true


okrob wrote:

On Mar 23, 6:37 am, Graeme wrote:
I often use the following in Access code to prevent msg's appearing when I'm
running a sequence.

DoCmd.SetWarnings False

Does anyone know if a similar bit of language works for Excel in VBA? I've
tried the above but Excel doesn't appaer to like it.

When I run the code I am copying data from several locations and it keeps
asking if I want to overright the existing data.

Any help appreciated.


DisplayAlerts = False

but when you're done with the code, be sure to turn it back on...

DisplayAlerts = True

Rob


--

Dave Peterson
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
Warnings Lynz[_2_] Excel Discussion (Misc queries) 3 August 14th 07 03:58 PM
Warnings in Excel Glenn Suggs Excel Programming 3 September 20th 06 03:30 PM
how to protect without getting the warnings Conditional Formatting Excel Worksheet Functions 0 November 21st 05 04:40 PM
Event warnings Greg[_19_] Excel Programming 0 February 22nd 05 02:22 PM
A Turing Machine in Excel George W. Cherry Excel Programming 5 August 3rd 04 09:48 PM


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