ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   having the same name for a lst, on multiple sheets (https://www.excelbanter.com/excel-programming/329869-having-same-name-lst-multiple-sheets.html)

Eric[_27_]

having the same name for a lst, on multiple sheets
 
Is it possible to have the same name for my database list on multiple
sheets.

Could someone show me the correct syntax to do that through VBA please.

Say the name I want to add is "Database" and I want to add it on a sheet
named "Retail" and a sheet named "Hotel"

Thanks, Eric



Vasant Nanavati

having the same name for a lst, on multiple sheets
 
Worksheets("Retail").Range("A1").Name = "Retail!Database"

or:

ActiveSheet.Range("A1").Name = ActiveSheet.Name & '!Database"

etc.

--

Vasant


"Eric" wrote in message
nk.net...
Is it possible to have the same name for my database list on multiple
sheets.

Could someone show me the correct syntax to do that through VBA please.

Say the name I want to add is "Database" and I want to add it on a sheet
named "Retail" and a sheet named "Hotel"

Thanks, Eric






All times are GMT +1. The time now is 05:31 PM.

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