+ Reply to Thread
Results 1 to 6 of 6

For Loop - Sheet Indices

  1. #1
    Registered User
    Join Date
    03-02-2008
    Posts
    39

    For Loop - Sheet Indices

    I'm trying to increment sheet indices in a for loop, see below, and I can't seem to get it. Can someone help me?

    In other words I would like t(1,1) to go into B3 and z(1,1) into C3
    then t(2,1) into D3 and z(2,1) into E3
    then t(3,1) into F3 and z(3,1) into G3
    then t(4,1) into H3 and z(4,1) into I3

    then t(5,1) into B4 and z(5,1) into C4 ......and so on
    .
    .
    .
    .

    Here is what I've tried but I know my syntax isn't correct. I've searched the forum but couldn't find anything.

    Please Login or Register  to view this content.
    Last edited by wz4np1; 08-25-2010 at 09:08 AM.

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: For Loop - Sheet Indices

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here

  3. #3
    Registered User
    Join Date
    03-02-2008
    Posts
    39

    Re: For Loop - Sheet Indices

    Sorry rylo. I have added the code tags as suggested.

  4. #4
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: For Loop - Sheet Indices

    Something like:
    Please Login or Register  to view this content.
    Note: don't ever use End in code.
    Remember what the dormouse said
    Feed your head

  5. #5
    Registered User
    Join Date
    03-02-2008
    Posts
    39

    Re: For Loop - Sheet Indices

    THANK YOU romperstomper! It works GREAT!

  6. #6
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: For Loop - Sheet Indices

    Glad to help. Please don't forget to mark the thread 'Solved'.

+ 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