Hi,
I’m using the following code in the hope of:
At present I’m just going to C201 whether I input a 1 or 2 etc
Can you help me sort it?
Many thanks
I’m using the following code in the hope of:
- moving cursor to cell C1 (on input of a ‘1’ to my Q1 on a userform
- moving cursor to cell C201 (on input of a ‘2’ to my Q1 on a userform
- moving cursor to cell C401 (on input of a ‘3’ to my Q1 on a userform
- moving cursor to cell C19801 (on input of a ‘99’ to my Q1 on a userform
At present I’m just going to C201 whether I input a 1 or 2 etc
Can you help me sort it?
Many thanks
Code:
Dim y As Integer
Dim ptr As Integer
Dim myRow As Long
SHEETS("TEST").Select
ptr = 0
Do While ptr <= y
y = 1
Range("C" & ptr * 0 + 1).Select
'clear the data
Me.txtfindrecipno.Value = ""
y = 1
Range("C" & ptr * 0 + 201).Select
'clear the data
Me.txtfindrecipno.Value = ""
Range("C" & ptr * 200 + 1).Select
ptr = ptr + 1
Loop