select sheet names from cell references ??

danno_mbk

Board Regular
Joined
Sep 6, 2004
Messages
102
Hi,
does anyone know if it is posible to select a sheet using a cell reference ?

eg if the sheet was called Feb 04 test, can I have the month in cell A1 the year in A2 then the word test in A3.
combine the three together :
in cell A4 = A1&" "&A2&" " &A3
copy and paste special
in to A5
then use cell a5 as a sheet reference. so I can say in my code:
sheets(" cell ref A5").select ?????

thanks

Dan
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
taKE A LOOK AT THE INDIRECT FUNCTION - WHICH DOES THIS. iTS A VOLTAILE (woops sorry for shouting) function so can impact performance.

Sory - wrong garden path there...
 
Upvote 0
Hi there,

Yes you can do this, the coding would look like

Sheets(Range("A5").Value).Select

Hope this helps

Richard
 
Upvote 0
Additonal:

sorry forgot to say that I want to select a sheet in another workbook.

how do I get it to choose the workbook and the sheet ? when I am in another workbook ?eg

workbook 1 holds in cell A5 the sheet name
Sheets(Range("A5").Value).Select
workbook 2 has the actual sheet name
(i have exhausted all my ideas)
elp....
 
Upvote 0

Forum statistics

Threads
1,207,259
Messages
6,077,347
Members
446,279
Latest member
hoangquan2310

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