+ Reply to Thread
Results 1 to 2 of 2

Curious behaviour of a macro with Sendkeys commands

Hybrid View

  1. #1
    Registered User
    Join Date
    02-09-2014
    Location
    Fukuoka
    MS-Off Ver
    Excel 365
    Posts
    11

    Curious behaviour of a macro with Sendkeys commands

    I hope someone can help me with this odd behaviour.

    I have an Auto_Open macro which runs perfectly in one workbook. It includes some Sendkeys commands (which I dislike, but in this case the alternative is worse !)

    In another workbook I have the same Auto-Open macro but with just 2 parts – the first maximises the Excel window and the second part is the SendKeys commands as above. It doesn’t run when I open the Workbook from the Excel jump list – it just sends the “warning” sound and the Workbook dosn’t open. An error has occurred somewhere as a “recovery file” is offered on next opening the Workbook.

    It will however run if I open Excel first, then open the Workbook.

    It will also run if I suspend the Auto_Open macro with a Message Box before the SendKeys commands.

    So I tried a “wait” command (10 seconds – and more) but in this case it did not run.

    Not only do I not know what’s going on, I cannot see how to diagnose it !

    Any help gratefully received.

  2. #2
    Registered User
    Join Date
    02-09-2014
    Location
    Fukuoka
    MS-Off Ver
    Excel 365
    Posts
    11

    Re: Curious behaviour of a macro with Sendkeys commands

    PS I had earlier posted this in Windows Secrets but there has been no help there. Hence this cross-posting - hope its OK !

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Consecutive Sendkeys commands won't work
    By PedalSteeler in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-26-2015, 09:38 AM
  2. [SOLVED] Problem with Sendkeys Macro
    By timbo1957 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-22-2014, 06:17 AM
  3. Cannot Print after using 'SendKeys'' in Macro
    By ptt196 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-21-2014, 01:36 PM
  4. [SOLVED] Curious about why one macro runs so much quicker than another
    By bodhi808 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 05-01-2013, 07:55 AM
  5. Macro Recording Chart Format commands missing all important commands!!!!
    By nounours in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-05-2013, 09:20 PM
  6. help with strange behaviour of macro
    By funkymonkUK in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-03-2006, 08:25 AM
  7. [SOLVED] Curious inconsistent behaviour with Application.Run
    By Cloudfall in forum Excel General
    Replies: 7
    Last Post: 12-01-2005, 12:50 AM

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