ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Worksheet Name (https://www.excelbanter.com/excel-programming/360856-worksheet-name.html)

Gian

Worksheet Name
 
Hi,

How can I get all the worksheet name from another opened workbook?

Thanks.

gian

Ardus Petus

Worksheet Name
 
sub listWS
Dim ws as Worksheet
for each ws in Workbooks("YourWB").WorkSheets
msgbox ws.Name
next ws
end sub

HTH
--
AP

"Gian" a écrit dans le message de news:
...
Hi,

How can I get all the worksheet name from another opened workbook?

Thanks.

gian





All times are GMT +1. The time now is 12:00 AM.

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