+ Reply to Thread
Results 1 to 3 of 3

For...Next loop - trying to have named range increase by count of 1

  1. #1
    Registered User
    Join Date
    09-18-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2007
    Posts
    5

    For...Next loop - trying to have named range increase by count of 1

    Hi Everyone,
    THanks for reading my question!

    I have several steps I need to do with some data and it needs to be done 9 times.
    I want to use For i= 1 to 9 to help speed up my writing but I am doing something wrong.

    I have 8 named ranges that I need to create each of these 9 times:
    Account1
    Account2
    Account3
    ...
    Account9

    I tried coding it:
    Dim i as integer
    For i = 1 to 9
    activecell.name = "account(i)"
    next i
    but I get an error.

    Anyone know if I can use the For Next to increase named ranges by a count of 1 on each "loop"?

    Many thanks.
    Christina

  2. #2
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: For...Next loop - trying to have named range increase by count of 1

    maybe this

    Please Login or Register  to view this content.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  3. #3
    Registered User
    Join Date
    09-18-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: For...Next loop - trying to have named range increase by count of 1

    Thank you so much Mike!!!

+ 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