+ Reply to Thread
Results 1 to 5 of 5

Esc to clear Sheet

  1. #1
    Registered User
    Join Date
    02-13-2007
    Posts
    9

    Cool Esc to clear Sheet

    I set up a macro to preview a work sheet on sheet 3 and when I right click it clears the sheet and sends me back to sheet 1. The problem is that when I get back to sheet 1 I have the drop down box with copy, paste and all that displayed. I have to hit the Esc button or a cell on the sheet to remove it. Is there some way of including the Esc in the macro to clear the drop down box?

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    Perhaps try Sendkeys

    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.

  3. #3
    Registered User
    Join Date
    02-13-2007
    Posts
    9

    Cool Worked

    It worked but had to set it to False. The box flashed up and then is gone. I tried the
    'Turn off screen updating
    Application.ScreenUpdating = False
    To see if it would hide it but it still just a flash and that is far better then it was.

    Thanks

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525
    here is an example code for you

    Please Login or Register  to view this content.
    the cancel=true stops the right click menu from showing

  5. #5
    Registered User
    Join Date
    02-13-2007
    Posts
    9

    Smile Worked Great

    Cancel=True did the trick
    Thanks,

+ 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