VBA - index of selected table-shape

S

Siberianhusky

dear ng again,

i need the actualy index of an selected table-shape. how can i read them?

i need them, to format the table automaticly like...

With sSh.Table
For iRow = 1 To .Rows.Count
For iColumn = 1 To .Columns.Count
......

it works, if i do it like this...
Set sSh = ActivePresentation.Slides(1).Shapes(1)

....if on Slide 1 is only an table. but i need the actualy, selected
table-index.

thanks and regards
Siberianhusky
 
S

Siberianhusky

thank you, but the ShapeRange(1)-Index is not allways the number one. i need
the aktually, selected index of the shape!

regards
Siberianhusky
 
S

Siberianhusky

thank you.
i now those examples, but in all them are fix shape-indexs. i need the
aktually selected shape-index wich the user has selected!

for example - the aktually slide-nummber:
iSlideNumber = ActiveWindow.Selection.SlideRange.SlideIndex

but i cann't find the index for the selected shape. who can help? thanks.

regards,
Siberianhusky
 
S

Siberianhusky

i get it!

sShape = ActiveWindow.Selection.ShapeRange.Name
Set sSh =
ActivePresentation.Slides(ActiveWindow.Selection.SlideRange.SlideIndex).Shapes(sShape)

regards,
Siberianhusky
 
S

Siberianhusky

i get it! -->

sShape = ActiveWindow.Selection.ShapeRange.Name
Set sSh =
ActivePresentation.Slides(ActiveWindow.Selection.SlideRange.SlideIndex).Shapes(sShape)

regards,
Siberianhusky
 

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