Get_Involved
Active Member
- Joined
- Jan 26, 2007
- Messages
- 383
When I place a number in Cell "C2" of the Bid Calculator.
Is there some code that can be placed in this code to find the number from Cell C2 of the Bid Calculator, and place it in the "Legend" Cells "E4:E18" then plus + 1 only in the cell of the same row, of "R4:R18”?
As it is formulated now it updates all the cells in "R4:R18" at the same time.
But I need it to only update the row of the "Legend" Cells "E4:E18" that has a number that matches the Cell of “C2 of the Bid Calculator”
Each of the rows in the "Legend" Cells "E4:E18" will have a different number based on the number I place in Cell “C2 of the Bid Calculator”
Here is the code I have
The numbers in the sheet "Legend" Row R4:R18 represent the numbers of loads each truck has hauled.
Is there some code that can be placed in this code to find the number from Cell C2 of the Bid Calculator, and place it in the "Legend" Cells "E4:E18" then plus + 1 only in the cell of the same row, of "R4:R18”?
As it is formulated now it updates all the cells in "R4:R18" at the same time.
But I need it to only update the row of the "Legend" Cells "E4:E18" that has a number that matches the Cell of “C2 of the Bid Calculator”
Each of the rows in the "Legend" Cells "E4:E18" will have a different number based on the number I place in Cell “C2 of the Bid Calculator”
Here is the code I have
Code:
Dim rng As Range
Dim m As Variant
Dim s1 As Worksheet, s2 As Worksheet
Set s1 = Sheets("Bid Calculator")
Set s11 = Sheets("Legend")
Set rng = s1.Range("C29:G29")
m = Application.WorksheetFunction.Max(rng)
s11.Range("R4") = m + 1
s11.Range("R5") = m + 1
s1.Range("C29") = m + 1
The numbers in the sheet "Legend" Row R4:R18 represent the numbers of loads each truck has hauled.