+ Reply to Thread
Results 1 to 5 of 5

Excel Macro does not complete with shortcut key.

  1. #1
    Forum Contributor
    Join Date
    05-19-2010
    Location
    Phoenix, AZ
    MS-Off Ver
    Excel 2003
    Posts
    107

    Excel Macro does not complete with shortcut key.

    Mornign All,
    I am spending my Saturday morning writing more macro's to streamline reporting processes. I have a macro I created that opens Access runs a query I have in there and then exports that to excel moves it to the report I need and organizes itself. The problem I am have is if I am in the VBE and step into line by line it does fine. If I just run the macro it runs fine but when I use the shortcute keys no matter which ones I assign to it it stops after it opens the workbook I need.

    Please Login or Register  to view this content.
    This is where it stops if I use the shortcut keys. It opens the file and then thats it. However, if I just use run or stepinto line by line it continues on.
    Please Login or Register  to view this content.
    Last edited by CJPHX; 06-28-2010 at 09:35 AM.

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,256

    Re: Excel Macro does not complete with shortcut key.

    Are you using a shortcut that involves the Shift key?
    Remember what the dormouse said
    Feed your head

  3. #3
    Forum Contributor
    Join Date
    05-19-2010
    Location
    Phoenix, AZ
    MS-Off Ver
    Excel 2003
    Posts
    107

    Re: Excel Macro does not complete with shortcut key.

    Yeah, I was using CTRL + SHIFT + P.

  4. #4
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,256

    Re: Excel Macro does not complete with shortcut key.

    Try a shortcut that does not involve the shift key. Should be OK then (it relates to holding Shift down when opening a workbook to prevent code from firing).

  5. #5
    Forum Contributor
    Join Date
    05-19-2010
    Location
    Phoenix, AZ
    MS-Off Ver
    Excel 2003
    Posts
    107

    Re: Excel Macro does not complete with shortcut key.

    Thank you romper. I had never even thought of that. As soon as I changed it to not using the SHIFT key it worked perfectly.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1