alecwarner
New Member
- Joined
- Aug 9, 2013
- Messages
- 16
Trying to pull in an email address from a textbox on a userform.
Worksheet is called DATA
names are listed in column O2:O30
email addresses are listed in P2:P30
ENG = UserForm1.ComboBox2.Value ' Eng
Dim EMAIL As String
EMAIL = Application.WorksheetFunction.VLookup(ENG, Data.Range("O2:O30").Value, 1, False)
MsgBox EMAIL
I keep getting:
Run-time error '424'
Object required
any help would be appreciated?
Thanks
Alge
Worksheet is called DATA
names are listed in column O2:O30
email addresses are listed in P2:P30
ENG = UserForm1.ComboBox2.Value ' Eng
Dim EMAIL As String
EMAIL = Application.WorksheetFunction.VLookup(ENG, Data.Range("O2:O30").Value, 1, False)
MsgBox EMAIL
I keep getting:
Run-time error '424'
Object required
any help would be appreciated?
Thanks
Alge