+ Reply to Thread
Results 1 to 2 of 2

Cant run vba code independantly.

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    03-14-2005
    Posts
    164

    Cant run vba code independantly.

    I have 6 modules.

    one contains a subroutine called Sub Run_Agent()

    if I am in any module, typing code and I want to test out the bit of code I am working on, I usually (in other spreadsheets) just press the play button and it goes from the top.

    now it is just brining up a Macros window allowing me to choose the macro to run.
    the only thing in the list is Run_Agent.

    does anyone know why this is?

    regards,
    Matt

  2. #2
    Jim Rech
    Guest

    Re: Cant run vba code independantly.

    If the editing cursor is in a procedure then pressing F5 should run it.
    However if this routine takes a parameter, it has to be called from another
    sub that passes the argument.

    --
    Jim
    "matpj" <matpj.23j8go_1140446409.1607@excelforum-nospam.com> wrote in
    message news:matpj.23j8go_1140446409.1607@excelforum-nospam.com...
    |
    | I have 6 modules.
    |
    | one contains a subroutine called Sub Run_Agent()
    |
    | if I am in any module, typing code and I want to test out the bit of
    | code I am working on, I usually (in other spreadsheets) just press the
    | play button and it goes from the top.
    |
    | now it is just brining up a Macros window allowing me to choose the
    | macro to run.
    | the only thing in the list is Run_Agent.
    |
    | does anyone know why this is?
    |
    | regards,
    | Matt
    |
    |
    | --
    | matpj
    | ------------------------------------------------------------------------
    | matpj's Profile:
    http://www.excelforum.com/member.php...o&userid=21076
    | View this thread: http://www.excelforum.com/showthread...hreadid=514410
    |



+ 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