interactive message with mouse selection

  • Thread starter Thread starter Miri
  • Start date Start date
M

Miri

hi,
i would like to have an interactive message like" please select your
required area"
and i get this mouse selection into my code and do something with it... how
do i do that?
 
Sub demo()
Dim r As Range
Set r = Application.InputBox(prompt:="pick range with mouse", Type:=8)
MsgBox (r.Address)
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top