S
Shairal
I will preface this with I have very little experience with VBA.
I have a little piece of code that copies data on a worksheet based on the
Range.AutoFilter method.
I now want to prompt my end user to enter the tab name of the worksheet that
he wants to copy the data to. I have found that I can set the name of the
sheet:
Set DestSheet = Sheets("SparkPlugs")
But I want the user to select the correct worksheet, instead of creating a
macro for each spreadsheet available.
I am able to prompt my user for the sheet name
DestSheet = InputBox("Enter the name of the sheet you want to copy the data
to.", _
"Enter Sheet Name")
But I don’t know how to make the sheet equal the name provided in the
message box.
Thanks in advance for your assistance.
I have a little piece of code that copies data on a worksheet based on the
Range.AutoFilter method.
I now want to prompt my end user to enter the tab name of the worksheet that
he wants to copy the data to. I have found that I can set the name of the
sheet:
Set DestSheet = Sheets("SparkPlugs")
But I want the user to select the correct worksheet, instead of creating a
macro for each spreadsheet available.
I am able to prompt my user for the sheet name
DestSheet = InputBox("Enter the name of the sheet you want to copy the data
to.", _
"Enter Sheet Name")
But I don’t know how to make the sheet equal the name provided in the
message box.
Thanks in advance for your assistance.