+ Reply to Thread
Results 1 to 4 of 4

Delete Sheets

  1. #1
    Andibevan
    Guest

    Delete Sheets

    Hi All,

    When I use the following formula:-

    Thisworkbook.sheets("Sheet1").delete

    It asks me whether I want to delete the sheet - Is there any way of
    bypassing this?

    Ta

    Andi



  2. #2
    keepITcool
    Guest

    Re: Delete Sheets

    application.displayalerts=false

    resets autom when macro is done.




    --
    keepITcool
    | www.XLsupport.com | keepITcool chello nl | amsterdam


    Andibevan wrote :

    > Hi All,
    >
    > When I use the following formula:-
    >
    > Thisworkbook.sheets("Sheet1").delete
    >
    > It asks me whether I want to delete the sheet - Is there any way of
    > bypassing this?
    >
    > Ta
    >
    > Andi


  3. #3
    Dave Peterson
    Guest

    Re: Delete Sheets

    application.displayalerts = false
    Thisworkbook.sheets("Sheet1").delete
    application.displayalerts = true

    Andibevan wrote:
    >
    > Hi All,
    >
    > When I use the following formula:-
    >
    > Thisworkbook.sheets("Sheet1").delete
    >
    > It asks me whether I want to delete the sheet - Is there any way of
    > bypassing this?
    >
    > Ta
    >
    > Andi


    --

    Dave Peterson

  4. #4
    Doug
    Guest

    Re: Delete Sheets

    Hi

    You want it to say


    Application.DisplayAlerts=False
    Thisworkbook.sheets("Sheet1").delete
    Application.DisplayAlerts=True


    Doug

    Andibevan wrote in message ...
    >Hi All,
    >
    >When I use the following formula:-
    >
    >Thisworkbook.sheets("Sheet1").delete
    >
    >It asks me whether I want to delete the sheet - Is there any way of
    >bypassing this?
    >
    >Ta
    >
    >Andi
    >
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1