+ Reply to Thread
Results 1 to 5 of 5

Loop in macro

  1. #1
    Registered User
    Join Date
    07-18-2011
    Location
    Sweden
    MS-Off Ver
    Excel 2003
    Posts
    3

    Loop in macro

    I have made a simple stopwatch with laps in excel with an macro.
    Please Login or Register  to view this content.
    As you see it is only made for two participants and I will need to make for about 100.
    I was hoping to make a loop within the VB script so that I dont need to add 100 Sub Lapx
    into the macro and also not to 100 Timesx and Nastax earlier.

    Any idea´s?
    Last edited by pdais97; 09-16-2011 at 06:10 AM.

  2. #2
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Loop in macro

    Please read the forum rules and add codetags around your code.



  3. #3
    Registered User
    Join Date
    07-18-2011
    Location
    Sweden
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Loop in macro

    Sorry about the tags. Now added.

  4. #4
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Loop in macro

    What triggers the macros to run ?

  5. #5
    Registered User
    Join Date
    07-18-2011
    Location
    Sweden
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Loop in macro

    I have a button to start recording (calling StartAll in macro).
    Then I have a button for each participate to get the laps (calling Lapsx in macro).
    I can supply the excel file if you want?

+ 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