LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Ctrl Shift | Macro Stops | Creating Short Cut Keys


I'm currently working on a macro that is embedded in an ".xla" file.
have created a short cut key (ctrl+shift+ K) that executes this macro
However, there is one line of code in the macro where the code stop
every time I run it.

Here is the code:

Workbooks.Open (TEMPLATE_FILEPATH & "\" & NAME_WKBK)

This line of code opens a workbook that contains data that I need t
access when this macro is run. The variable: TEMPLATE_FILEPATH contain
the file path information & NAME_WKBK contains the name of the workbook


When I put a breakpoint in the VB editor on this line of code, the cod
stops there and I can press the "F8" key and then press play and th
code will run normally without a problem. However if I don't include
breakpoint, but put a breakpoint on the next subsequent line of cod
the compiler never makes it past the above line of code.

The really funny thing about this problem is that if I change the shor
cut key to "ctrl k" the entire script executes without a problem. Fo
some reason when I am using the open file method and "shift" in th
short cut key, the macro does not run all the way through. Can somebod
help? If you need a better explanation I would be willing to give one

--
gduro
-----------------------------------------------------------------------
gduron's Profile: http://www.excelforum.com/member.php...fo&userid=3323
View this thread: http://www.excelforum.com/showthread.php?threadid=53059

 
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
shift and down keys in macro CousinExcel Excel Discussion (Misc queries) 3 January 15th 10 02:05 PM
short cut keys work- run macro does not snax500[_2_] Excel Programming 2 August 3rd 05 08:41 PM
Tracing and reassigning macro short cut keys Graeme Excel Programming 1 February 10th 05 06:07 PM
cut & paste with short cut keys (ctrl C V) with absolute cell refe Modeller Dave Excel Discussion (Misc queries) 1 December 7th 04 11:14 PM


All times are GMT +1. The time now is 05:36 PM.

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

About Us

"It's about Microsoft Excel"