Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Can you enable/disable macro keyboard shortcuts in excel 2003?

Can you enable/disable macro keyboard shortcuts in excel 2003?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,718
Default Can you enable/disable macro keyboard shortcuts in excel 2003?

If a shortcut is assigned to a macro via Tools, Macro, Macros, Options there
is no global way of disabling it. You would have to remove the shortcut
assignment or assign a null macro to it using OnKey:

Application.OnKey "^m", ""

When you removed the OnKey:

Application.OnKey "^m"

the former shortcut would work again.

--
Jim
"Burninator2000" wrote in message
...
| Can you enable/disable macro keyboard shortcuts in excel 2003?


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Can you enable/disable macro keyboard shortcuts in excel 2003?

Its not that I really want to disable the macro, but that I created it in
Excel 97. Now when I try to use the shortcut in 2003 nothing happens. It can
still be run via Tools, Macro etc.. And the keyboard shortcut is still setup
in options. Any ideas? I was wondering if there was a history of problems
like this between different versions of excel.

"Jim Rech" wrote:

If a shortcut is assigned to a macro via Tools, Macro, Macros, Options there
is no global way of disabling it. You would have to remove the shortcut
assignment or assign a null macro to it using OnKey:

Application.OnKey "^m", ""

When you removed the OnKey:

Application.OnKey "^m"

the former shortcut would work again.

--
Jim
"Burninator2000" wrote in message
...
| Can you enable/disable macro keyboard shortcuts in excel 2003?



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,718
Default Can you enable/disable macro keyboard shortcuts in excel 2003?

I think that a macro shortcut would override Excel's use of the keystroke,
say if Excel 2003 used a shortcut that Excel 97 did not (not that I know of
one off the top of my head). So I'd expect your shortcut to work, unless
you had a macro that used OnKey to grab the shortcut. That seems to
override an assignment made via Macro, Options. You could rule that
possibly out by starting Excel 2003 in safe mode and then opening your
workbook and checking if the shortcut worked. To open Excel in safe mode,
from Start-Run enter "Excel.exe /s" (no quotes, there is a space before the
slash). Worth a try even if you're positive there is no OnKey running.

Btw, what is the shortcut key that's not working?

--
Jim
"Burninator2000" wrote in message
...
| Its not that I really want to disable the macro, but that I created it in
| Excel 97. Now when I try to use the shortcut in 2003 nothing happens. It
can
| still be run via Tools, Macro etc.. And the keyboard shortcut is still
setup
| in options. Any ideas? I was wondering if there was a history of problems
| like this between different versions of excel.
|
| "Jim Rech" wrote:
|
| If a shortcut is assigned to a macro via Tools, Macro, Macros, Options
there
| is no global way of disabling it. You would have to remove the shortcut
| assignment or assign a null macro to it using OnKey:
|
| Application.OnKey "^m", ""
|
| When you removed the OnKey:
|
| Application.OnKey "^m"
|
| the former shortcut would work again.
|
| --
| Jim
| "Burninator2000" wrote in
message
| ...
| | Can you enable/disable macro keyboard shortcuts in excel 2003?
|
|
|


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Can you enable/disable macro keyboard shortcuts in excel 2003?

I have found what the problem was. The module name in visual basic was the
same as the macro name. As soon as I changed the module name the shortcut
worked fine. Strangely, this arrangement worked fine in Excel 97 but 2003
wouldn't have it. Also the macro itself would work fine in 2003 just not via
the shortcut. The shortcut I used all along was Ctrl+Shift+R, and this is now
working fine.

Thanks for the advice.

"Jim Rech" wrote:

I think that a macro shortcut would override Excel's use of the keystroke,
say if Excel 2003 used a shortcut that Excel 97 did not (not that I know of
one off the top of my head). So I'd expect your shortcut to work, unless
you had a macro that used OnKey to grab the shortcut. That seems to
override an assignment made via Macro, Options. You could rule that
possibly out by starting Excel 2003 in safe mode and then opening your
workbook and checking if the shortcut worked. To open Excel in safe mode,
from Start-Run enter "Excel.exe /s" (no quotes, there is a space before the
slash). Worth a try even if you're positive there is no OnKey running.

Btw, what is the shortcut key that's not working?

--
Jim
"Burninator2000" wrote in message
...
| Its not that I really want to disable the macro, but that I created it in
| Excel 97. Now when I try to use the shortcut in 2003 nothing happens. It
can
| still be run via Tools, Macro etc.. And the keyboard shortcut is still
setup
| in options. Any ideas? I was wondering if there was a history of problems
| like this between different versions of excel.
|
| "Jim Rech" wrote:
|
| If a shortcut is assigned to a macro via Tools, Macro, Macros, Options
there
| is no global way of disabling it. You would have to remove the shortcut
| assignment or assign a null macro to it using OnKey:
|
| Application.OnKey "^m", ""
|
| When you removed the OnKey:
|
| Application.OnKey "^m"
|
| the former shortcut would work again.
|
| --
| Jim
| "Burninator2000" wrote in
message
| ...
| | Can you enable/disable macro keyboard shortcuts in excel 2003?
|
|
|



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
Enable/Disable Drag and Drop in Excel 2003 via Registry BSchmeltz Excel Discussion (Misc queries) 9 July 12th 07 05:03 PM
Disable keyboard shortcuts Pegasus Excel Discussion (Misc queries) 21 July 1st 07 12:23 PM
2003 Keyboard Shortcuts in 2007 JG2222 Excel Discussion (Misc queries) 1 February 8th 07 01:12 PM
File opens with Enable or Disable Macro animalfriend7 Excel Discussion (Misc queries) 1 November 8th 06 04:29 PM
enable/disable macro RICK Excel Discussion (Misc queries) 4 June 15th 06 07:55 PM


All times are GMT +1. The time now is 02:13 AM.

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"