Hi,
I'm looking for some guidance.. I've got the following setup:
(1) A userform which acts as a search interface
(2) A useform which 'should' show the individual record details selected in (1)
The source data is in a table and I can successfully pass the correct table row number to the second userform.. **BUT** I'm not sure how to use this value to lookup the data for the rest of the fields in the corresponding row to populate the userform?!
The VBA for the second userform is shown below:
<code>
Private Sub UserForm_Activate()
With Me
.txtRow.Value = Me.Tag
.txtArea.Value = Application.VLookup(Me.Tag, Sheets("SHEET1").Range("A6:AS4336"), 3, False)
End With
End Sub
</code>
I doesn't seem to like the 'Me.Tag' expression... can anyone offer any ideas or suggestions?? - I've been searching for a bit and can't really find a suitable answer.. thanks for any help or advice offered!
I'm looking for some guidance.. I've got the following setup:
(1) A userform which acts as a search interface
(2) A useform which 'should' show the individual record details selected in (1)
The source data is in a table and I can successfully pass the correct table row number to the second userform.. **BUT** I'm not sure how to use this value to lookup the data for the rest of the fields in the corresponding row to populate the userform?!
The VBA for the second userform is shown below:
<code>
Private Sub UserForm_Activate()
With Me
.txtRow.Value = Me.Tag
.txtArea.Value = Application.VLookup(Me.Tag, Sheets("SHEET1").Range("A6:AS4336"), 3, False)
End With
End Sub
</code>
I doesn't seem to like the 'Me.Tag' expression... can anyone offer any ideas or suggestions?? - I've been searching for a bit and can't really find a suitable answer.. thanks for any help or advice offered!