Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm baffeled - I have a macro that was written to open 4 text files as fixed
width files and place them in the same workbook on different worksheets. The macro runs fine, but only if I launch it from the VBA Editor, or from the Tools - Macros window and select the macro and click run. I have assigned a shortcut key combination (CTRL+SHIFT+Q). If open Excel and use that shortcut, the macro launches, but stops immediately after opening the first file. No error messages or anything like that. How do I correct this problem? I'm running Excel 2003 The macro is in my Personal.xls, and that file is hidden Thanks for any help, Rich |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Remove the shift key from your shortcut key combination.
Poody wrote: I'm baffeled - I have a macro that was written to open 4 text files as fixed width files and place them in the same workbook on different worksheets. The macro runs fine, but only if I launch it from the VBA Editor, or from the Tools - Macros window and select the macro and click run. I have assigned a shortcut key combination (CTRL+SHIFT+Q). If open Excel and use that shortcut, the macro launches, but stops immediately after opening the first file. No error messages or anything like that. How do I correct this problem? I'm running Excel 2003 The macro is in my Personal.xls, and that file is hidden Thanks for any help, Rich -- Dave Peterson |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thank you very much - that worked beautifully.
"Dave Peterson" wrote: Remove the shift key from your shortcut key combination. Poody wrote: I'm baffeled - I have a macro that was written to open 4 text files as fixed width files and place them in the same workbook on different worksheets. The macro runs fine, but only if I launch it from the VBA Editor, or from the Tools - Macros window and select the macro and click run. I have assigned a shortcut key combination (CTRL+SHIFT+Q). If open Excel and use that shortcut, the macro launches, but stops immediately after opening the first file. No error messages or anything like that. How do I correct this problem? I'm running Excel 2003 The macro is in my Personal.xls, and that file is hidden Thanks for any help, Rich -- Dave Peterson . |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Dave
On Feb 18, 8:52*am, Dave Peterson wrote: Remove the shift key from your short cut key combination. I just ran into a similar situation, and discovered that removing the shift key fixed the problem. But I was unable to come up with a "why". Then I came across your reply, and I'm hoping you could explain the "why" to your solution. Thanks, Regards Dave U. |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Holding the shift key down when you open a workbook disables the auto run macros
(workbook_open and auto_open). If it's in the shortcut, it confuses excel so that it thinks it shouldn't be running macros. So your "real" macro stops. Dave Unger wrote: Hi Dave On Feb 18, 8:52 am, Dave Peterson wrote: Remove the shift key from your short cut key combination. I just ran into a similar situation, and discovered that removing the shift key fixed the problem. But I was unable to come up with a "why". Then I came across your reply, and I'm hoping you could explain the "why" to your solution. Thanks, Regards Dave U. -- Dave Peterson |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Dave,
Oh, yes !! I'm ashamed to admit how much time I wasted over this, troubleshooting some fairly complex code before stumbling on to the cause. Oh well, live & learn! Thanks for this, Dave. Regards, Dave U On Mar 4, 12:30*pm, Dave Peterson wrote: Holding theshiftkey down when you open a workbook disables the auto run macros (workbook_open and auto_open). If it's in theshortcut, it confuses excel so that it thinks it shouldn't be running macros. *So your "real" macro stops. Dave Unger wrote: Hi Dave On Feb 18, 8:52 am, Dave Peterson wrote: Remove theshiftkey from your short cut key combination. I just ran into a similar situation, and discovered that removing the shiftkey fixed the problem. *But I was unable to come up with a "why". *Then I came across your reply, and I'm hoping you could explain the "why" to your solution. *Thanks, Regards Dave U. -- Dave Peterson |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dave's have to stick together <vbg.
Dave Unger wrote: Hi Dave, Oh, yes !! I'm ashamed to admit how much time I wasted over this, troubleshooting some fairly complex code before stumbling on to the cause. Oh well, live & learn! Thanks for this, Dave. Regards, Dave U On Mar 4, 12:30 pm, Dave Peterson wrote: Holding theshiftkey down when you open a workbook disables the auto run macros (workbook_open and auto_open). If it's in theshortcut, it confuses excel so that it thinks it shouldn't be running macros. So your "real" macro stops. Dave Unger wrote: Hi Dave On Feb 18, 8:52 am, Dave Peterson wrote: Remove theshiftkey from your short cut key combination. I just ran into a similar situation, and discovered that removing the shiftkey fixed the problem. But I was unable to come up with a "why". Then I came across your reply, and I'm hoping you could explain the "why" to your solution. Thanks, Regards Dave U. -- Dave Peterson -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Edit Menu shortcut not fully working | Excel Discussion (Misc queries) | |||
Nexted For Statements don't execute fully | Excel Programming | |||
Macro Shortcut Key Conflicts with Application Shortcut Keys | Excel Programming | |||
Macro Shortcut Key Conflicts with Application Shortcut Keys | Excel Programming | |||
execute a macro | Excel Programming |