View Single Post
 
Old 09-26-2021, 12:27 AM
Cendrinne's Avatar
Cendrinne Cendrinne is offline Windows 10 Office 2019
Competent Performer
 
Join Date: Aug 2019
Location: Montreal Quebec Canada
Posts: 190
Cendrinne is on a distinguished road
Wink Wow it works wonderfully. I'm so excited :) Thank you

Quote:
Originally Posted by Guessed View Post
Combining two conditions can be with an AND or an OR inclusion
If test1 = blah AND test2 = "blah blah" then 'this means both must be true
If test1 = blah OR test2 = "blah blah" then 'this means one must be true

So your code could be
Code:
For Each aTbl In ActiveDocument.Tables
   With aTbl.Rows(1).Range.Font
      If .Color = 192 And .Bold = True Then
        aTbl.Rows(1).ConvertToText Separator:=wdSeparateByParagraphs, NestedTables:=False
      ElseIf .Color = 192 Then
        'do something else
      End If
    End With
Next aTbl

This helped alot. I'm so grateful to have you guys from the forum.
Thank you soooooooo very much, Andrew.

I'm getting better, but still lots to learn.

Cendrinne
Reply With Quote