Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Macro doesn't execute fully using shortcut

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Macro doesn't execute fully using shortcut

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Macro doesn't execute fully using shortcut

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 153
Default Macro doesn't execute fully using shortcut

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Macro doesn't execute fully using shortcut

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 153
Default Macro doesn't execute fully using shortcut

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Macro doesn't execute fully using shortcut

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
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
Edit Menu shortcut not fully working EricGoldman Excel Discussion (Misc queries) 2 July 23rd 09 06:50 PM
Nexted For Statements don't execute fully EJKorvette[_2_] Excel Programming 1 January 11th 08 08:41 PM
Macro Shortcut Key Conflicts with Application Shortcut Keys Jordan Hotzel Excel Programming 0 October 13th 06 06:39 AM
Macro Shortcut Key Conflicts with Application Shortcut Keys Jordan Hotzel Excel Programming 0 October 13th 06 06:39 AM
execute a macro Rossy Excel Programming 2 December 15th 05 09:04 AM


All times are GMT +1. The time now is 09:51 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"