ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   help: I need to have an excel worksheet name = a cell in an existi (https://www.excelbanter.com/excel-programming/376658-help-i-need-have-excel-worksheet-name-%3D-cell-existi.html)

tim m

help: I need to have an excel worksheet name = a cell in an existi
 
help: I need to have an excel worksheet name = a cell in an existing workbook.
the cell reference is a merged cell, and is a date

Tom Ogilvy

help: I need to have an excel worksheet name = a cell in an existi
 
Dim dt as Date
dt = Worksheets("Sheet1").Range("B9").Value
Activesheet.Name = format(dt,"yyyymmdd")

--
Regards,
Tom Ogilvy

"tim m" wrote:

help: I need to have an excel worksheet name = a cell in an existing workbook.
the cell reference is a merged cell, and is a date


tim m

help: I need to have an excel worksheet name = a cell in an ex
 
Where and how do I place this?

"Tom Ogilvy" wrote:

Dim dt as Date
dt = Worksheets("Sheet1").Range("B9").Value
Activesheet.Name = format(dt,"yyyymmdd")

--
Regards,
Tom Ogilvy

"tim m" wrote:

help: I need to have an excel worksheet name = a cell in an existing workbook.
the cell reference is a merged cell, and is a date



All times are GMT +1. The time now is 01:56 AM.

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