VSTO group

J

jeff

First is there a VSTO Group I cannot seem to find it

I am trying to learn VSTO and want to convert the following VBA code
to work off the ribbon in powerpoint

With ActivePresentation.SlideShowSettings()
.ShowType = ppShowTypeSpeaker
.LoopUntilStopped = msoFalse
.ShowWithNarration = msoTrue
.ShowWithAnimation = msoTrue
.RangeType = ppShowAll
.AdvanceMode = ppSlideShowUseSlideTimings
.PointerColor.RGB = RGB(Red:=255, Green:=0, Blue:=0)
.Run()
End With

However the activepresentation object off the ribbon. Very
frustratiing
 
S

Steve Rindsberg

First is there a VSTO Group I cannot seem to find it

I am trying to learn VSTO and want to convert the following VBA code
to work off the ribbon in powerpoint

With ActivePresentation.SlideShowSettings()
.ShowType = ppShowTypeSpeaker
.LoopUntilStopped = msoFalse
.ShowWithNarration = msoTrue
.ShowWithAnimation = msoTrue
.RangeType = ppShowAll
.AdvanceMode = ppSlideShowUseSlideTimings
.PointerColor.RGB = RGB(Red:=255, Green:=0, Blue:=0)
.Run()
End With

However the activepresentation object off the ribbon.

This sentence no verb ;-)

The code above has nothing to do with the ribbon and should work the same
whether it's called from the ribbon or a toolbar button or elsewhere.

Google this for a bunch of references to creating and using the ribbon UI
office 2007 ribbonx
 
J

jeff

Sorry.

I guess the question is how do you write code in "ribbon.vb" that will
intereact with the underlying objects in the application (in this case
Powerpoint's activepresentation) that the ribbon is being displayed
in.
 
S

Steve Rindsberg

You don't, exactly.

You write XML that defines your modifications to the ribbon bar and that tells
the application what code to run when the user clicks buttons etc. that you've
added.

Google the terms I've suggested; the first five or so links should have most
of the info you need.

I don't use VSTO so can't offer specific help for that.
 

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

Top