Robert Allan
New Member
- Joined
- Mar 30, 2020
- Messages
- 19
- Office Version
- 365
- Platform
- Windows
Confused!
I’m trying to follow along with the Excel VBA USERFORMS #2 Sort Database By Employee Id. I seem to be susessful, except for one part. I have watch it many times, and just don’t understand ( and could not make out what he said) in this part:
If Cells(Rows.Count, 1).End(xlUp).Row = 1 Then
lr = 2
Else
ir =.Cells(Row.Count, 1).End(xlUp).Row
End If
I understand how to get to last row and what these lines mean, but first he types in “lrcode”, and says something that I can’t hear very well. The “ircode” paste the above lines into the sub-routine. Then vanishes. My question is, what is “lrccode” and how does it work.
I’m trying to follow along with the Excel VBA USERFORMS #2 Sort Database By Employee Id. I seem to be susessful, except for one part. I have watch it many times, and just don’t understand ( and could not make out what he said) in this part:
If Cells(Rows.Count, 1).End(xlUp).Row = 1 Then
lr = 2
Else
ir =.Cells(Row.Count, 1).End(xlUp).Row
End If
I understand how to get to last row and what these lines mean, but first he types in “lrcode”, and says something that I can’t hear very well. The “ircode” paste the above lines into the sub-routine. Then vanishes. My question is, what is “lrccode” and how does it work.