+ Reply to Thread
Results 1 to 4 of 4

Not able to run two codes at once

  1. #1
    Registered User
    Join Date
    02-02-2010
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2007
    Posts
    62

    Unhappy Not able to run two codes at once

    Hi,

    I have two codes in one module, Test1 () and Test2 (), and i have a script to run both these codes as RunAll () and assigned a keyboard shortcut. (Cntrl+Num0).

    When i execute RunAll (), only Test 1 code is executing not Test2.

    Code:

    Please Login or Register  to view this content.
    Can anyone pls help me on this.

    Thanks

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Not able to run two codes at once

    What happens when you set a breakpoint and step through the code?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    02-02-2010
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2007
    Posts
    62

    Re: Not able to run two codes at once

    SHG,

    Im a newbie to VBA, if u tell me how to do that ill try.

    When I press F8 (Step) to Test2 () it will start from
    Please Login or Register  to view this content.
    and runs twice and stop at End Sub

    im not sure why even Test2 code is not working when i run it seperately in new document


    Can u pls help me on this
    Last edited by pradeepdeepu_001; 01-14-2013 at 01:04 AM.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Not able to run two codes at once

    Time to jump in the deep end: http://www.cpearson.com/excel/DebuggingVBA.aspx

+ 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