+ Reply to Thread
Results 1 to 4 of 4

Macro to Click on Popup message option "Delete"

  1. #1
    Registered User
    Join Date
    04-16-2008
    Posts
    19

    Macro to Click on Popup message option "Delete"

    Hi,

    I have a macro which needs to delete a particular worksheet. But a message pops up asking for confirmation of the deletion of the worksheet. I tried recording by clicking on the "Delete" option, but this part doesn't get recorded.

    Can u let me know what is the code for clicking on the "Delete" option on this message box?

    Thanks

  2. #2
    Registered User
    Join Date
    12-17-2007
    Posts
    9

    Smile Chintai

    This can be one using VBA.

  3. #3
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    Add this command before the delete commad
    Please Login or Register  to view this content.
    Add this command after the delete command
    Please Login or Register  to view this content.
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  4. #4
    Registered User
    Join Date
    04-16-2008
    Posts
    19
    Works perfect

    Thanks a lot !

+ 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