Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Unable to get macro hotkey to work

Hey all,

I'm using Excel 2003 and I'm unable to get my macro (with a hotkey assigned) to execute fully. Here's my macro which will stop after the 'open' command. It doesn't display the 2nd message box.

Sub DoIt()
MsgBox "Testing #1"
Workbooks.Open ("C:\Testing.xls")
MsgBox "Testing #2"
End Sub


I have this macro assigned to a hotkey (CTRL+SHIFT+D). It will execute as far as opening the workbook but then stop running. It won't execute anything after the Open command. If I put a break point on the first message box, it execute just fine (all the way through). If I create a toolbar and assigned a button on that toolbar to execute this macro, all is well --- just not through the hotkey.

What am I doing wrong?

Relvinian

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Unable to get macro hotkey to work

If you use Shift as part of the hotkey, then use a hotkey that does not
include shift.

--
Regards,
Tom Ogilvy

"Relvinian" wrote in message
...
Hey all,

I'm using Excel 2003 and I'm unable to get my macro (with a hotkey assigned)
to execute fully. Here's my macro which will stop after the 'open' command.
It doesn't display the 2nd message box.

Sub DoIt()
MsgBox "Testing #1"
Workbooks.Open ("C:\Testing.xls")
MsgBox "Testing #2"
End Sub


I have this macro assigned to a hotkey (CTRL+SHIFT+D). It will execute as
far as opening the workbook but then stop running. It won't execute
anything after the Open command. If I put a break point on the first
message box, it execute just fine (all the way through). If I create a
toolbar and assigned a button on that toolbar to execute this macro, all is
well --- just not through the hotkey.

What am I doing wrong?

Relvinian



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help - Alt-E hotkey does not work in MSOffice apps, no prob in other apps Bob Newheart Excel Discussion (Misc queries) 4 July 28th 08 03:57 PM
excel2007 hotkey L@ja New Users to Excel 0 January 29th 08 12:23 PM
Unable to add color to work sheet. Davidb New Users to Excel 8 July 23rd 06 06:09 AM
Unable to get examples to work for lookup etc BrandonC Excel Worksheet Functions 6 July 20th 06 02:58 AM
Hotkey problem w/ macro to append comment roadkill Excel Discussion (Misc queries) 1 April 6th 05 06:52 PM


All times are GMT +1. The time now is 05:35 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"