longhornfan
New Member
- Joined
- Dec 16, 2011
- Messages
- 4
I am in need to have an application.inbox prompt a user to enable the user to click a particular cell. From there i need the address of the cell as well as the sheet.
If the user presses cancel, exit sub would need to be there.
If the user presses the x, exit sub would need to be there.
I hope my ask is coming across clearly. i need be able to prompt a user to select the sheet they want to see and capture that sheet name for future use.
Code:
Dim MyRange As Range
Set MyRange = Application.InputBox("Select the range to process", Type:=8)
If Not MyRange Is Nothing Then
MsgBox MyRange.Parent.Name
Else: Exit Sub
End If
If the user presses cancel, exit sub would need to be there.
If the user presses the x, exit sub would need to be there.
I hope my ask is coming across clearly. i need be able to prompt a user to select the sheet they want to see and capture that sheet name for future use.