Merged cells in Powerpoint

B

bourgui

Hi all,

I'm looking for a way to determine which cells are merged in
Powerpoint tables. I'm a little dumbfounded that there is no "merged"
property on the Cell object.

So far I've had to resort to selecting a first cell, then checking of
other potential cells are also selected, but it is ugly and time
consuming (not to mention you can't do this silently).

Am I missing something obvious here?

Thanks!
 
C

Chirag

Each cell in a Table refers to the Shape object. This object is the same for
merged cells and is different for separate cells. So, if a 5x5 table is
selected and cell (3,3) and (3,4) are merged, the following returns True:

With ActiveWindow.Selection.ShapeRange(1).Table
MsgBox .Cell(3, 4).Shape Is .Cell(3, 3).Shape
End With

Once you have a reference to the table shape, you don't have to select the
shape or any cell to know whether the cells have been merged.

- Chirag

PowerShow - View multiple PowerPoint slide shows simultaneously
http://officeone.mvps.org/powershow/powershow.html
 
B

Bourgui

Thanks Chirag,

That was so simple, yet I never thought of it. I only tried testing the
names of the shapes, which is not always available.

Thanks again!
 

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