![]() |
#1
|
||||
|
||||
![]()
I am trying to write a macro to change some table settings. It's sorta working, but I could use a little help.
1. I can't figure out how to select the first row of the current table so I can set the font and flag it as a header row. As I understand it, this code selects the second row in the first table of a document: Code:
ActiveDocument.Tables(1).Rows(2).Select Code:
Selection.Tables(1).Rows(1).Select Code:
If Selection.Information(wdWithInTable) <> True Then MsgBox "The cursor is not in a table", , "MyTableSettings macro" Exit Sub End If |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
KIM SOLIS | Excel | 2 | 11-04-2011 06:09 PM |
![]() |
RBusiness | Word | 1 | 06-07-2011 04:26 PM |
![]() |
b0x4it | Word VBA | 2 | 05-26-2011 06:25 AM |
Table - Check Boxes - Create Select All | lajohn1963 | Word Tables | 2 | 09-25-2010 11:18 AM |
![]() |
Styler001 | Word | 4 | 01-25-2010 06:40 PM |