msvisual.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Count non-hidden slides in Powerpoint macro

 
Post new topic   Reply to topic    msvisual.com Forum Index -> VB Syntax
Author Message
mark2atsafe



Joined: 04 Oct 2007
Posts: 1

PostPosted: Fri Mar 09, 2007 5:04 pm    Post subject: Count non-hidden slides in Powerpoint macro Reply with quote

Hi all,
I'm using ActivePresentation.Slides.Count in a Powerpoint macro to return
the number of slides.

Unfortunately this gives me the absolute total number of slides, including
hidden slides. What I'm looking for is the number of visible slides.

Is there a property that returns the count of visible slides, or the number
of hidden slides so I can subtract it from the total count?

Any info appreciated,

Mark I

Archived from group: microsoft>public>vb>syntax
Back to top
View user's profile Send private message
Jeff Johnson



Joined: 04 Oct 2007
Posts: 1327

PostPosted: Mon Mar 19, 2007 1:40 pm    Post subject: Re: Count non-hidden slides in Powerpoint macro Reply with quote

"mark2atsafe" wrote in message @microsoft.com...

> I'm using ActivePresentation.Slides.Count in a Powerpoint macro to return
> the number of slides.
>
> Unfortunately this gives me the absolute total number of slides, including
> hidden slides. What I'm looking for is the number of visible slides.
>
> Is there a property that returns the count of visible slides, or the
> number
> of hidden slides so I can subtract it from the total count?
>
> Any info appreciated,

This isn't the best group to ask in, since your question is dedicated to a
particular Office product. Unfortunately there's no specific group for
PowerPoint programming like there are for other Office apps. We usually
direct people to the main PowerPoint group.

As a guess, I'd look for a property on the Slide object itself (or whatever
it's called) that tells whether it's hidden and then loop through all the
slides and count the non-hidden ones. I doubt there's a standalone property
that does what you're looking for.

Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
Hidden directory/folder Hi In Internet explorer I can see the folder "Documents and settings" But When I create a dirlist box in VB, I cannot see it WHY How do I fix the problem? My settings are to SHOW all hidden directories. Thanks Ian M -- Norton Profe

Hidden ActiveX Property Does any one know how to have a Property on an ActiveX control to only be available at Run time. What I was wanting to do was to have a property (Let/Get) that is available at run time, but I didn't want it to show up in the Properties list during develop

record Count in ADO (this works) Dim rec_ctr as Integer, Dastring as String Dim DBQD As New Dim RsQD As New '*(NO OBJECT USED ON FORM)* rec_ctr = 0 Dastring = "Provider = & _ "Data Source =" & DBQD.Open

DAO record count, How did it work without move... This works also and this is what I originally had in DAO which I've been slowly converting to ado and hopefully doing all my queries with sql. But I don't have the movelast trick in here. Maybe I've been using DAO incorrectly? -Len = vbHo

Running a macro from within Application_ItemSend I have created a macro that marks email in specific folder from a specific sender as "Read" When I run the macro from the macro works perfectly fine. I want to automate the macro to run everytime items are sent. using postings fou
Post new topic   Reply to topic    msvisual.com Forum Index -> VB Syntax All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group