+ Reply to Thread
Results 1 to 3 of 3

Increment row but lock cell in a loop.

  1. #1
    Registered User
    Join Date
    01-07-2011
    Location
    Stamford, England
    MS-Off Ver
    Excel 2007
    Posts
    13

    Exclamation Increment row but lock cell in a loop.

    I'm trying to calculate a value using a worksheet named data and then pasting that value into a call in a worksheet called design database. All the input for the data worksheet comes from the design database worksheet. The only problem is i need to run the program for each row in design database separately. To do this i want to create a loop so that it runs the program for that row then increments the row number and runs the program again.

    This is my code so far
    Please Login or Register  to view this content.
    I need to be able to use the value of 'i' everywhere there is an R[] and on the last range select (for instance AX(i)) but i need to keep the same column for each one. I'm not sure how to do this.
    Last edited by Riosmitham; 01-12-2011 at 10:43 AM.

  2. #2
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Increment row but lock cell in a loop.

    To me it's unclear what you want. An example file would be beneficial.
    The lookup-formula can't be right.

    Please Login or Register  to view this content.



  3. #3
    Registered User
    Join Date
    01-07-2011
    Location
    Stamford, England
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Increment row but lock cell in a loop.

    I managed to actually really tidy up my code and now it works fine. This is what i got.
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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