PDA

View Full Version : How do i do something to CURRENT row in a table?



TrippyTom
04-10-2007, 10:52 AM
I've seen examples of how to go through rows with a for/next loop, but is there a simple way just to do something to whatever row the cursor is on? Basically, I would like to:
1) use the button on the Tables & Borders toolbar (insert row above)
2) merge the resulting row into 1 "cell"
3) set the top margin to 0.25"
4) format font, color, etc
5) put text in that cell

I think I know how to do everything except #1

TrippyTom
04-10-2007, 12:31 PM
As usual, I dug enuf to find a workaround. I discovered right click is the same as pressing SHIFT + F10, so I used sendkeys to get it done. Perhaps not the best solution, but it works.

Hope that helps others.

TrippyTom
04-10-2007, 02:01 PM
Well, it turns out I still need to figure out "current row" so i can format it. Anyone know how?

TrippyTom
04-12-2007, 10:35 AM
This is driving me crazy! Why doesn't PowerPoint have a ROWINDEX like Excel does? How else can I figure out the row number in order to format it properly in VBA?

geekgirlau
04-12-2007, 07:03 PM
Hi Tom,

I haven't done any PP automation personally, and a look at the object model and a google search has so far not revealed any solutions ... :reading:

TrippyTom
04-13-2007, 10:12 AM
Yeah, that's why I'm going crazy. It's so frustrating. :banghead: I didn't have much hair left to begin with, but I predict I will be bald by the end of the week.

If anyone knows or discovers a workaround, I would truly appreciate it. Thanks.