Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
input worksheet name
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 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
input worksheet name
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. -- HTH Bob Phillips "Dr.Schwartz" wrote in message ... 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 |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
input worksheet name
Thanks Bob, just what I was looking for.
"Bob Phillips" wrote: 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. -- HTH Bob Phillips "Dr.Schwartz" wrote in message ... 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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Tabbing through input worksheet | Excel Discussion (Misc queries) | |||
How do I use a worksheet name as an input variable to a formula? | Excel Discussion (Misc queries) | |||
Input data from one worksheet to another | Excel Discussion (Misc queries) | |||
Input data from one worksheet to another | Excel Programming | |||
Input Form on Worksheet 1, Data on Worksheet 2 | Excel Programming |