Handle on activeshape and slide

  • Thread starter Thread starter Hari Prasadh
  • Start date Start date
H

Hari Prasadh

Hi,

How do I get a handle on active shape in PPT (am Coding in Excel)

I want to use something like

With oPPTApp1.ActivePresentation.Slides(1).ACTIVESHAPE

where oPPTApp1 is PPT application and I do have a particular shape in my PPT
which is active (similar to active sheet / cell in excel)

Also do we have a code/syntax like Activeslide (I tried
activepresentation.activeslide but got no intelli prompt)

Please guide me.

Thanks a lot,
Hari
India
 
Hari,

This works for me as is in PPT with the selected shape.

With ActiveWindow.Selection.ShapeRange
.Top = 10
.Left = 10
End With

You can just wrap it inside of the a with oPPTApp1.activepresentation
nest.

Brian Reilly, MVP
 
Hi,

How do I get a handle on active shape in PPT (am Coding in Excel)

I want to use something like

With oPPTApp1.ActivePresentation.Slides(1).ACTIVESHAPE

where oPPTApp1 is PPT application and I do have a particular shape in my PPT
which is active (similar to active sheet / cell in excel)

How would you define active?
If you're in normal view, ActiveWindow.Selection.ShapeRange returns a range =
currently selected shape or shapes.

If you're in slideshow view, you can't select anything, so this won't work.

Also do we have a code/syntax like Activeslide (I tried
activepresentation.activeslide but got no intelli prompt)

That again depends on the current view.

ActiveWindow.Selection.SlideRange might do it
 
Hi Steve,

Thnx for the solution

(am always in normal view only. Am just updating the data in my PPT's and
not running code while in slide show mode etc.)

Thanks a lot,
Hari
India
 

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