Use VBA to find the name of the first sheet in a workbook

How can I use vba to find the name of the first sheet in a workbook?
I use this code to copy from the first sheet to another sheet in the workbook:
Sheets("Sheet1").Range("b10:d10").Copy Sheets("Sales").Range("B2")

What I want is to use some vba code to return name of the first sheet in the workbook to a vaiable that I can use in the code. Something like this:
strFirstSheet = "somehow find name of first sheet"
Sheets(strFirstSheet).Range("b10:d10").Copy Sheets("Sales").Range("B2")

Maybe a strange problem but it makes sense in my setting. Appreciate any help.
hallpettAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rgonzo1971Commented:
Hi,

pls try

Sheets(1).Range("b10:d10").Copy Sheets("Sales").Range("B2") 
'or 
strFirstSheet = Sheets(1).Name
Sheets(strFirstSheet).Range("b10:d10").Copy Sheets("Sales").Range("B2") 

Open in new window

Regards

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
[ fanpages ]IT Services ConsultantCommented:
For the first created but not, necessarily, the first shown left-to-right across the bottom of the application window:

strFirstSheet = ActiveWorkbook.Worksheets(1).Name

or

strFirstSheet = Workbooks("NameofFile.xlsm").Worksheets(1).Name
Athar SyedCommented:
Since VBA starts with 1 instead of 0, the below statement will return the name of the first sheet
Public Function GetFirstSheet() As String
    GetFirstSheet = Application.Sheets.Item(1).Name
End Function

Open in new window

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.