+ Reply to Thread
Results 1 to 3 of 3

how to put a for loop in a select case statement

  1. #1
    Forum Contributor
    Join Date
    08-14-2013
    Location
    LA Baby!!
    MS-Off Ver
    Excel 2007
    Posts
    1,598

    how to put a for loop in a select case statement

    Hello. I'm trying to put a for loop to increase the i by 1 for each copy and paste. I'm not sure how to do it though. Please help.


    Please Login or Register  to view this content.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: how to put a for loop in a select case statement

    You already have a loop, if you only want to increase i by one each time just add this as the first line in the Case Else code.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    45,044

    Re: how to put a for loop in a select case statement

    Maybe:

    Please Login or Register  to view this content.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Loop select case statement
    By grkchakri in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-29-2013, 01:49 AM
  2. [SOLVED] Select Case with a Loop
    By Rick_Stanich in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-25-2012, 01:50 PM
  3. Select Case in a loop something like this possible?
    By scottr99 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-29-2012, 05:31 PM
  4. Select Case with Loop or For Next
    By garretonufer in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-24-2009, 07:12 AM
  5. [SOLVED] Utilize a Select Case Statement in Target Intersect Statement
    By max57 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-29-2009, 08:55 PM

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