ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Get Names of ActiveWorkbook.CustomViews (https://www.excelbanter.com/excel-programming/410220-get-names-activeworkbook-customviews.html)

cellist

Get Names of ActiveWorkbook.CustomViews
 
How can I collect the names of all the defined custom views?

TIA,

Phil

Gary Keramidas

Get Names of ActiveWorkbook.CustomViews
 
this may help you get what you want

Sub test()
Dim i As Long
For i = 1 To ThisWorkbook.CustomViews.Count
MsgBox ThisWorkbook.CustomViews(i).Name
Next
End Sub

--


Gary


"cellist" wrote in message
...
How can I collect the names of all the defined custom views?

TIA,

Phil




cellist

Get Names of ActiveWorkbook.CustomViews
 
Thanks Gary. That's exactly what I need.

"Gary Keramidas" wrote:

this may help you get what you want

Sub test()
Dim i As Long
For i = 1 To ThisWorkbook.CustomViews.Count
MsgBox ThisWorkbook.CustomViews(i).Name
Next
End Sub

--


Gary


"cellist" wrote in message
...
How can I collect the names of all the defined custom views?

TIA,

Phil






All times are GMT +1. The time now is 10:37 PM.

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