Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,388
Default Using Macro to Delete a tab in a file

I would like to use a macro to delete a tab in a workbook. When I execute
the macro, I get the message asking if it is ok to delete the sheet. Is
there a way to have the macro answer the question "yes".

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Using Macro to Delete a tab in a file

Hi
add the line
application.displayalerts=false
before the delete statement and afterwards add:
application.displayalerts=true

--
Regards
Frank Kabel
Frankfurt, Germany

Dave wrote:
I would like to use a macro to delete a tab in a workbook. When I
execute the macro, I get the message asking if it is ok to delete the
sheet. Is there a way to have the macro answer the question "yes".

Thanks



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default Using Macro to Delete a tab in a file

Application.DisplayAlerts = False
''your code to delete worksheet here

Ray at work

"Dave" wrote in message
...
I would like to use a macro to delete a tab in a workbook. When I execute
the macro, I get the message asking if it is ok to delete the sheet. Is
there a way to have the macro answer the question "yes".

Thanks



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
2007 Macro to Open File, Delete Contents, Save New File Flintstone[_2_] Excel Discussion (Misc queries) 2 February 1st 10 11:25 PM
How do I delete an xls file using a .xl macro in a different file? JHB Excel Discussion (Misc queries) 3 August 3rd 09 12:59 AM
code to delete module / macro in another file Ray Clark[_2_] Excel Discussion (Misc queries) 1 July 3rd 08 04:15 AM
Open & delete file using a macro Dode Excel Discussion (Misc queries) 3 December 5th 07 07:25 PM
Can't find macro in an Excel file to delete it Ron Excel Discussion (Misc queries) 3 July 1st 05 01:07 PM


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