ananthkrish
New Member
- Joined
- Apr 27, 2019
- Messages
- 4
I am new to VBA, please dont mind if my mistakes are blunder
I am trying to send the data from userform to a sheet, where there is a id in colom "A", and this data should go to the cells in that row.
i was using match and offset function,
below mentioned is the code i was trying.
please help
I am trying to send the data from userform to a sheet, where there is a id in colom "A", and this data should go to the cells in that row.
i was using match and offset function,
below mentioned is the code i was trying.
please help
Private Sub Save_1_Click()
'Dim i As Integer
Sheet2.Activate
Set i = Me.ID_Search
Dim rng As Range
Set rng = Sheets("sheet2").Range("A1").Offset(Application.WorksheetFunction.Match(i, Range("A:A"), 0), 2)