Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default Get Names of ActiveWorkbook.CustomViews

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

TIA,

Phil
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default 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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default 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




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ActiveWorkbook.Names.Add -- Problem Ger[_3_] Excel Programming 6 February 23rd 07 09:32 AM
Mutiple names in ActiveWorkbook.SendMail Recipients:= daleatshel Excel Discussion (Misc queries) 2 February 5th 07 08:06 PM
get all sheet names in comboBox of activeworkbook and export when selected ilyaskazi[_26_] Excel Programming 5 June 14th 05 02:49 PM
'ActiveWorkbook.Names.Add Name:' how to make range variable? TeeSea Excel Programming 1 June 9th 05 03:42 PM
Using ActiveWorkbook.Names.Add Name:= Stuart[_5_] Excel Programming 2 November 15th 03 02:38 PM


All times are GMT +1. The time now is 06:42 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"