Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / March 2005

Tip: Looking for answers? Try searching our database.

More than 1 cell

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
rob p - 10 Mar 2005 19:02 GMT
In a table in word 2k template, if check box is checked then the font in
that cell turns bold:
Table has two rows and two cols. This is row 1, col 1.
If ActiveDocument.FormFields(FormfieldName()).CheckBox.Value = True Then
   Selection.Cells(1).Range.Font.Bold = True

How can I turn font in cell row 2, col 1 also bold in the same if statement?

thanks

I tried the following but kept erroring out:
Set myTable = ActiveDocument.Tables(1)
myTable.Range.Cells.Add BeforeCell:=myTable.Cell(2, 1)
Helmut Weber - 10 Mar 2005 19:26 GMT
Hi,

like this:

With Selection
  .Cells(1).Range.Font.Bold = True
  If .Cells(1).RowIndex < .Tables(1).Rows.Count Then
     .Tables(1).Cell(.Cells(1).RowIndex + 1,
.Cells(1).ColumnIndex).Range.Font.Bold = True
  End If
End With

Greetings from Bavaria, Germany

Helmut Weber, MVP
"red.sys" & chr(64) & "t-online.de"
Word XP, Win 98
http://word.mvps.org/
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.