I'm having a problem with my code that allocates the user input data. The looping works fine but it is limited to 31 lines only.
Here's the code:
Have tried changing the value of
to
but still does not work properly and it still limited to 31 lines only.
Appreciate your help.
Here's the code:
Code:
Sub HYD_HYDMNL_TIX()
Dim MNLCounter As Double, HYDCounter As Double, MNL As Double, HYD As Double
Dim nextrow As Double
MNL = ActiveSheet.Range("B4").Value + 6
HYD = ActiveSheet.Range("F4").Value + 6
nextrow = ActiveSheet.Range("O4").Value + 4
MNLCounter = 4
HYDCounter = 4
For HYDCounter = 4 To HYD
ActiveSheet.Range("Q" & nextrow).Value = ActiveSheet.Range("H" & HYDCounter).Value
nextrow = ActiveSheet.Range("O4").Value + 4
ActiveSheet.Range("Q" & nextrow).Value = ActiveSheet.Range("D" & MNLCounter).Value
MNLCounter = MNLCounter + 1
nextrow = ActiveSheet.Range("O4").Value + 4
Next HYDCounter
End Sub
Have tried changing the value of
Code:
For HYDCounter = 4 To HYD
Code:
For HYDCounter = 4 To 1000
Appreciate your help.