Help

Aaron

Board Regular
Joined
Feb 20, 2002
Messages
237
This is a real simple one, that for some reason I can't figure out. I need a cell in my worksheet to have a formula that is the worksheet name. The formula =CELL("Filename") gets me too much info. All I need is the Sheet name. Any help would be appreciated. -asa
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
On 2002-08-20 14:00, Jim North wrote:
Function SName()
Application.Volatile
SName = ActiveSheet.Name
End Function
Jim -
I tried inserting the code above, and I get nothing. I am doing something wrong? I inserted the code in the VB Editor on the VBA Project window under ThisWorkbook. Is that right? thx in advance
 
Upvote 0
If you want to use Jim's code, it is a UDF. You need to put it ina regular module. VB editor, Insert Module.

Best: Put it in a module in your Personal.xls workbook so it will always be available.
 
Upvote 0
On 2002-08-20 14:52, lenze wrote:
If you want to use Jim's code, it is a UDF. You need to put it ina regular module. VB editor, Insert Module.

Best: Put it in a module in your Personal.xls workbook so it will always be available.
OK, I must be an idiot. I put it in a module, and still get nothing. I apologize for my ignorance.
 
Upvote 0
On 2002-08-20 14:58, Aaron wrote:
On 2002-08-20 14:52, lenze wrote:
If you want to use Jim's code, it is a UDF. You need to put it ina regular module. VB editor, Insert Module.

Best: Put it in a module in your Personal.xls workbook so it will always be available.
OK, I must be an idiot. I put it in a module, and still get nothing. I apologize for my ignorance.
OK I am still an idiot, but i did get it to work. I apologize for the confusion. Have I posted how great this board is? Its great. Thanks guys & gals.
 
Upvote 0

Forum statistics

Threads
1,203,461
Messages
6,055,559
Members
444,799
Latest member
CraigCrowhurst

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