Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to acknowledge a message box from VB program?

When deleting a sheet from VB program a message box pops
up and waits for acknowedgement. How can I
programmatically acknowledge (close) the box?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,080
Default How to acknowledge a message box from VB program?

Application.DisplayAlerts = False
Sheet1.Delete
Application.DisplayAlerts = True

--

Vasant

"Darwin" wrote in message
...
When deleting a sheet from VB program a message box pops
up and waits for acknowedgement. How can I
programmatically acknowledge (close) the box?




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 691
Default How to acknowledge a message box from VB program?

An example of code to delete the sheet w/o verification when
- Sheetname begins with "sheet", and
- There is no code in the sheet (no Worksheet Event macros)

Delete Active Sheet if name begins with "sheet" (#DeleteThisSheet)
Worksheets in VBA Coding and in Worksheet Formulas
http://www.mvps.org/dmcritchie/excel...eletethissheet

"Vasant Nanavati" <vasantn *AT* aol *DOT* com wrote ...
Application.DisplayAlerts = False
Sheet1.Delete
Application.DisplayAlerts = True

"Darwin" wrote ...
When deleting a sheet from VB program a message box pops
up and waits for acknowedgement. How can I
programmatically acknowledge (close) the box?



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
Is there a way to unload the loaded XLL file in Excel? Hi all, I amdebugging XLL link library using Visual C++. Everytime I rebuild the XLL, Ihave to close the whole Excel program and relaunch the Excel program again,and then load in the newly gene LunaMoon Excel Discussion (Misc queries) 0 July 28th 08 11:03 PM
Excel Program Error - Excel.exe Generated Errors Message Denise Lane Setting up and Configuration of Excel 4 March 18th 05 10:09 PM
merging excel program with tdc finance program judy Excel Programming 0 November 5th 03 08:01 PM
message box program flow losmac Excel Programming 0 August 21st 03 09:36 PM
message box program flow Chip Pearson Excel Programming 0 August 19th 03 09:54 PM


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