+ Reply to Thread
Results 1 to 2 of 2

Help with simple for loop

  1. #1
    Registered User
    Join Date
    05-09-2013
    Location
    Rapid City, SD
    MS-Off Ver
    Excel 2010
    Posts
    11

    Help with simple for loop

    Hey guys, I am new to programming and need help writing a "for" loop in VBA.

    I have a variable called "Comment" and I want Comment to start at 3, then increment by 5 every time after that (until it has looped 21 times).

    Said another way...

    at i = 1, I want Comment = 3
    i = 2, Comment = 8
    i = 3, Comment = 13
    i = 4, Comment = 18
    etc.



    Thanks!

  2. #2
    Valued Forum Contributor tehneXus's Avatar
    Join Date
    04-12-2013
    Location
    Hamburg, Germany
    MS-Off Ver
    Work: MS-Office 2010 32bit @ Win8 32bit / Home: MS-Office 2016 32bit @ Win10 64bit
    Posts
    944

    Re: Help with simple for loop

    Please Login or Register  to view this content.
    Please use [CODE]-TAGS
    When your problem is solved mark the thread SOLVED
    If an answer has helped you please click to give reputation
    Read the FORUM RULES

+ 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