how to access a sheet by only knowing its position

s95a1li

New Member
Joined
Jan 12, 2004
Messages
2
To access a cell A1 in the "Sheet2" sheet I simply use =Sheet2!A1

How can I access the second sheet in the workbook without referring to its name? (It will be different from time to time)

In visual basic I can access the 2nd sheet in a workbook with
Sheets(2).Cell(1,1).Value

Is there a way to access a sheet the same way by just using excel.

Something like =[Sheet which has the second position in the workbook]!A1

Thanks a lot in advance!

Andy
 
Greg Truby said:
Thanks for that tip and link, JPG. I just read that thread :p and I gotta say, some of the formulas y'all cook up (especially Mr. Akyurek) are downright scary sometimes. :eek:

And Jon, thank ya kindly for the compliment, but after seein' JPG's handiwork on that other thread, my hat-size ain't a goin' up too much.
Yes, I agree !! but just gotta love a well "cooked" formula !!
 
Upvote 0

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

Forum statistics

Threads
1,215,327
Messages
6,124,289
Members
449,149
Latest member
mwdbActuary

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top