Get Names of ActiveWorkbook.CustomViews

  • Thread starter Thread starter cellist
  • Start date Start date
C

cellist

How can I collect the names of all the defined custom views?

TIA,

Phil
 
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
 
Thanks Gary. That's exactly what I need.

Gary Keramidas said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top