worksheet name in cell

imillar

New Member
Joined
Apr 8, 2002
Messages
6
is there a way to insert the worksheet name into a cell
EG:
sheet 1 name is "John"
sheet 2 name is "brian"

on another worksheet "summary" i want to insert these two worksheet names in cells a1 and a2.

regards
 
Hi Aladdin,

Just got directed to this from another post. I've never come across the get.workbook structure before - where is it documented? Also, it seems strange that the function works when used to define a name, but doesnt work when put into a worksheet cell.

Grateful if you could enlighten me.

Many thanks
 
Upvote 0

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Hi Aladdin,

Just got directed to this from another post. I've never come across the get.workbook structure before - where is it documented? Also, it seems strange that the function works when used to define a name, but doesnt work when put into a worksheet cell.

Grateful if you could enlighten me.

Many thanks

There is more on such macros on this very site. For more, see: http://www.ashishmathur.com/tag/xlm-4-0-macro/
 
Upvote 0
Many thanks for this - interesting that a macro can feature in a Name definition, I'd never come across that before.

Regards
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,552
Members
449,088
Latest member
davidcom

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