+ Reply to Thread
Results 1 to 3 of 3

Macro will run when I hit f5 in VB, but will not run from excel

  1. #1
    Forum Contributor
    Join Date
    09-06-2012
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    225

    Post Macro will run when I hit f5 in VB, but will not run from excel

    The macro I created will run when I open the module in VB and click f5, so I know the coding is accurate. The problem is when I go to the alt+f8 screen in excel and highlight the macro, none of the options are available to click (Run, Step Into, Edit, Delete...). The assigned hot key will not execute the macro either. Note: I created the macro on my PERSONAL.XLSB.

    Please assist.

    Thank you,

    Nick
    Last edited by Gard5096; 09-13-2012 at 02:58 PM.

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Macro will run when I hit f5 in VB, but will not run from excel

    what's the code-specifically the declaration line of the routine-and which module is it in (name and type)?

    if the routine has a name that is a cell reference you will have that behavior
    Last edited by JosephP; 09-06-2012 at 12:12 PM.
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  3. #3
    Forum Contributor
    Join Date
    09-06-2012
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    225

    Re: Macro will run when I hit f5 in VB, but will not run from excel

    Thanks, changing the name of the macro seemed to fix the problem. Maybe it didn't like that the name started with a number, or the fact that the name replicated an existing variable.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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