+ Reply to Thread
Results 1 to 5 of 5

SendKeys won't fire on Workbook_Deactivate or Workbook_BeforeClose

Hybrid View

  1. #1
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: SendKeys won't fire on Workbook_Deactivate or Workbook_BeforeClose

    Try inserting:

    DoEvents
    immediately after the SendKeys
    Gary's Student

  2. #2
    Registered User
    Join Date
    11-20-2012
    Location
    Oklahoma City, OK
    MS-Off Ver
    2010
    Posts
    3

    Re: SendKeys won't fire on Workbook_Deactivate or Workbook_BeforeClose

    Thanks Jakobshavn...that works fine when closing the workbook! However, when switching between workbooks, the other actions work fine, but the ribbon won't restore. You did so good with your first suggestion, how about taking a shot at this one

    NEW INFO: Interesting...if I switch between this workbook and another xlsx file, it works fine. But, if I open a new workbook while this one is open, it doesn't toggle the ribbon when switching between those two books.
    Last edited by xzlaatc; 11-26-2012 at 01:36 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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