Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Warnings in Excel

Can someone please tell me how to turn off warnings in Excel VBA in the way
you would do this in Access?
DoCmd.SetWarnings False

Whenever the code closes a workbook, the prompt is displayed saying I've
pasted a large amount of data to the clipboard, etc. and this needs to be
part of an automated process.

Also how would you trigger a macro to run when a particular workbook is
opened?

Thanks in advance,
--
Glenn
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default Warnings in Excel


Glenn Suggs wrote:
Can someone please tell me how to turn off warnings in Excel VBA in the way
you would do this in Access?
DoCmd.SetWarnings False

Whenever the code closes a workbook, the prompt is displayed saying I've
pasted a large amount of data to the clipboard, etc. and this needs to be
part of an automated process.

Also how would you trigger a macro to run when a particular workbook is
opened?

Thanks in advance,
--
Glenn


Try

Application.DisplayAlerts = False

That should take care of most (all?) such prompts

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 132
Default Warnings in Excel

Use the Workbook_Open event in the ThisWorkbook class.

Also how would you trigger a macro to run when a particular workbook is opened?



"Glenn Suggs" wrote:

Can someone please tell me how to turn off warnings in Excel VBA in the way
you would do this in Access?
DoCmd.SetWarnings False

Whenever the code closes a workbook, the prompt is displayed saying I've
pasted a large amount of data to the clipboard, etc. and this needs to be
part of an automated process.

Also how would you trigger a macro to run when a particular workbook is
opened?

Thanks in advance,
--
Glenn

  #4   Report Post  
Posted to microsoft.public.excel.programming
JNW JNW is offline
external usenet poster
 
Posts: 480
Default Warnings in Excel

Make sure you turn them back on again when you close the workbook.


application.displayalerts = true
--
JNW


"Bill Pfister" wrote:

Use the Workbook_Open event in the ThisWorkbook class.

Also how would you trigger a macro to run when a particular workbook is opened?



"Glenn Suggs" wrote:

Can someone please tell me how to turn off warnings in Excel VBA in the way
you would do this in Access?
DoCmd.SetWarnings False

Whenever the code closes a workbook, the prompt is displayed saying I've
pasted a large amount of data to the clipboard, etc. and this needs to be
part of an automated process.

Also how would you trigger a macro to run when a particular workbook is
opened?

Thanks in advance,
--
Glenn

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
disable Warnings in Excel Crazyhorse Excel Worksheet Functions 1 January 11th 08 06:54 PM
VB Help (Excel Warnings) Alastair79 Excel Programming 2 August 3rd 06 01:47 PM
Disabling some MS Excel warnings. Christopher Blue Excel Discussion (Misc queries) 0 January 1st 05 06:19 AM
Excel Macro Warnings Kent Prokopy[_3_] Excel Programming 0 August 8th 03 04:44 PM
Getting rid of Outlook warnings from excel macro Andrew[_12_] Excel Programming 1 July 10th 03 03:54 PM


All times are GMT +1. The time now is 06:53 PM.

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"