ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   running macro from keystrokes versus from ribbon (https://www.excelbanter.com/excel-programming/443999-running-macro-keystrokes-versus-ribbon.html)

Andrew[_56_]

running macro from keystrokes versus from ribbon
 
Hello,
I have a macro which is intended to open a userform and populate a
drop down box. I have assigned CTRL L as the keystrokes to run this.
If I run the macro using the keystrokes, the userform does not get
populated. If I run the same macro from the ribbon, the macro works
fine. What might be causing this?

thanks

Gord Dibben[_2_]

running macro from keystrokes versus from ribbon
 
Ctrl + lower case ell is shortcut for create list.

Try Ctrl + Shift + ell


Gord Dibben MS Excel MVP

On Thu, 9 Dec 2010 10:44:49 -0800 (PST), Andrew
wrote:

Hello,
I have a macro which is intended to open a userform and populate a
drop down box. I have assigned CTRL L as the keystrokes to run this.
If I run the macro using the keystrokes, the userform does not get
populated. If I run the same macro from the ribbon, the macro works
fine. What might be causing this?

thanks


Andrew[_56_]

running macro from keystrokes versus from ribbon
 
On Dec 9, 3:23*pm, Gord Dibben wrote:
Ctrl + lower case ell is shortcut for create list.

Try Ctrl + Shift + ell

Gord Dibben * * MS Excel MVP

On Thu, 9 Dec 2010 10:44:49 -0800 (PST), Andrew
wrote:

Hello,
I have a macro which is intended to open a userform and populate a
drop down box. *I have assigned CTRL L as the keystrokes to run this.
If I run the macro using the keystrokes, the userform does not get
populated. *If I run the same macro from the ribbon, the macro works
fine. *What might be causing this?


thanks


Here's what happened. I had copied the workbook and saved it as
another file. Both files were open at the same time, and both files
had the same macros in them. When I called the macro using CTRL + L,
Excel called the macro from the other open workbook, not the one I was
working with. The userform came up as expected but it was the
userform from the other workbook. Once I closed the other workbook,
the program worked fine.


All times are GMT +1. The time now is 07:09 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com