ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Worksheet name (https://www.excelbanter.com/excel-worksheet-functions/161555-worksheet-name.html)

[email protected]

Worksheet name
 
I'm trying to put the worksheet name in a cell in my worksheet.

I cant work out how to do it.

This doesn't work for me Cells(1, 1).Value = Worksheet.Name

Can anyone put m eright please.

Thanks


Stefi

Worksheet name
 
Cells(1, 1).Value = ActiveSheet.Name
or
Cells(1, 1).Value = Worksheets("wsname").Name
or
Cells(1, 1).Value = Worksheets(1).Name

Regards,
Stefi

ezt *rta:

I'm trying to put the worksheet name in a cell in my worksheet.

I cant work out how to do it.

This doesn't work for me Cells(1, 1).Value = Worksheet.Name

Can anyone put m eright please.

Thanks



[email protected]

Worksheet name
 
Great thanks, just had a mental block.


Stefi

Worksheet name
 
You are welcome! Thanks for the feedback!
Stefi

ezt *rta:

Great thanks, just had a mental block.



JE McGimpsey

Worksheet name
 
If you want a worksheet function solution:

http://www.mcgimpsey.com/excel/formu..._function.html



In article .com,
" wrote:

I'm trying to put the worksheet name in a cell in my worksheet.

I cant work out how to do it.

This doesn't work for me Cells(1, 1).Value = Worksheet.Name

Can anyone put m eright please.

Thanks



All times are GMT +1. The time now is 06:41 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com