+ Reply to Thread
Results 1 to 6 of 6

How to set a variable in combination with a looping x counter

  1. #1
    Registered User
    Join Date
    04-25-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    91

    How to set a variable in combination with a looping x counter

    Hello,

    I am trying to set a variable in combination with a looping x counter, so that as the loop continues a new variable is set for a given range.

    Please Login or Register  to view this content.

    Any help with performing this action would be most appreciated!

    Thanks,

    Jason

  2. #2
    Registered User
    Join Date
    11-08-2015
    Location
    Croatia
    MS-Off Ver
    2016
    Posts
    53

    Re: How to set a variable in combination with a looping x counter

    Don't know if this is what you want:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    04-25-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    91

    Re: How to set a variable in combination with a looping x counter

    No, because A_Variable will always be reassigned for each loop. I need the variable to be a distinct variable for each loop.

    Appreciate the help.

  4. #4
    Registered User
    Join Date
    11-08-2015
    Location
    Croatia
    MS-Off Ver
    2016
    Posts
    53

    Re: How to set a variable in combination with a looping x counter

    Well then you need a dynamic array variable

    Something like this:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    04-25-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    91

    Re: How to set a variable in combination with a looping x counter

    Brilliant! Thank you so much!!!

  6. #6
    Registered User
    Join Date
    11-08-2015
    Location
    Croatia
    MS-Off Ver
    2016
    Posts
    53

    Re: How to set a variable in combination with a looping x counter

    Maybe you can help me now. To register on my webpage www.virtual-forms.com and become a beta tester of new concept of Excel Userforms and if you love it, maybe tell some friends about it :-)

    Davor

+ 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. Looping for each variable in UDT
    By MOHAMMESALMAN in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-12-2015, 10:32 AM
  2. Require a counter with more than one variable
    By Runce in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-19-2014, 04:20 AM
  3. paste many rows and add a counter variable
    By IonVasi in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-06-2013, 10:55 PM
  4. Adding a counter variable to code
    By nav505 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-14-2013, 08:28 PM
  5. [SOLVED] Looping through a code to get the value of the counter
    By chiidzzz in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 01-29-2013, 02:30 PM
  6. Using counter variable as cell reference
    By riwiseuse in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 10-22-2010, 03:03 PM
  7. [SOLVED] Counter variable in For Loop
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-08-2006, 02:00 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