input worksheet name

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want the user to enter a row number - easy:

RowSou = InputBox("Enter source row")

But I also want the user to specify which sheet the row number is on. I
could have the user enter the sheet name manually in another input box, but
with the risk of typos or misspelling i'm looking for a nicer way for the
user to select the correct sheet. Please supply any code you may think could
do the trick.

Thank you.
The Doctor
 
Dim rng As Range

Set rng = Application.Inputbox("Select range",Type:=8)

In this the user selects the range,including the sheet, not type it. You
then work on the range object.
 
Thanks Bob, just what I was looking for.

Bob Phillips said:
Dim rng As Range

Set rng = Application.Inputbox("Select range",Type:=8)

In this the user selects the range,including the sheet, not type it. You
then work on the range object.
 

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