sparky2205
Well-known Member
- Joined
- Feb 6, 2013
- Messages
- 507
- Office Version
- 365
- 2016
- Platform
- Windows
I'm trying to come up with a solution to allow users either directly type an entry into an inputbox or alternatively select the entry from a list.
So something like:
But of course this won't work as Type 2 is a string and Type 8 is a range.
Am I missing something simple or is there a workaround I can use?
I also tried:
So something like:
VBA Code:
Set personnel = Application.InputBox("Type a name or select a name from column B", Type:=2+8)
Am I missing something simple or is there a workaround I can use?
I also tried:
VBA Code:
If Not IsError(Application.InputBox("Select a name from column B", Type:=8)) Then
Set personnel = Application.InputBox("Select a name from column B", Type:=8)
Else:
Set personnel = Application.InputBox("Enter a name", Type:=2)
End If