Sheet names and VBA

jayjavina

New Member
Joined
Feb 3, 2009
Messages
34
Is it possible for the sheet name to appear in a specified cell without using VBA codes?

Let's say if i rename "SHEET1" to "MYNAME", "MYNAME" will appear in cell A1.

Thanks!!!:biggrin:
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
If your workbook is already saved, you can use this formula in a cell to get the sheetname:

=MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,255)

This doesn't work on un-saved workbooks.
 
Upvote 0
Thanks bro!
By the way, what is the 1,255 for?

One more thing, can we limit the number of user is a specific sheet? What am saying is can we set some security in a specific sheet or making a sheet exclusive just to one person?

Appreciate your help!:biggrin:
 
Upvote 0
One more thing, can we limit the number of user is a specific sheet? What am saying is can we set some security in a specific sheet or making a sheet exclusive just to one person?

Appreciate your help!:biggrin:
Sort of.
But it most likely requires VBA.
 
Upvote 0
It's not 1,255. The 1 is the last part of the FIND function section

FIND("]",CELL("filename",A1))+1

The 255 is the number of characters to return after that position is found by the FIND function.

As for your security question, please start a new thread as it is completely unrelated to this topic.
 
Upvote 0

Forum statistics

Threads
1,213,534
Messages
6,114,185
Members
448,554
Latest member
Gleisner2

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