Macros will not run with shortcut keys

D

Doug

This macro will not run with the shortcut keys but will run using
tools,macros, run. I have several more similar and one will run with the keys
the others will not.


Sub Indent_Left_1()
'
' Indent_Left_1 Macro
' Macro recorded 4/2/2009 by Doug
'
' Keyboard Shortcut: Ctrl+Shift+L
'
With Selection
.HorizontalAlignment = xlLeft
.VerticalAlignment = xlBottom
.WrapText = False
.Orientation = 0
.AddIndent = False
.IndentLevel = 1
.ShrinkToFit = False
.ReadingOrder = xlContext
End With
End Sub
 
R

ryguy7272

Tools > Macro > Macros > Options. This shows your macros assigned to a
shortcut key. Enter a letter (not number) there. Your macro will be
assigned to that key-combination. Ctrl + ... whatever ...
 
G

Gord Dibben

Tested in 2003 using CTRL + SHIFT + L

No problems here.

Are you sure you haven't changed the shortcut since you recorded the macro?


Gord Dibben MS Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top