Gurus,
I am building a Word document with a document template using information in an Access database. I use the "with" structure to define and populate the table cells. In certain cells, I need to BOLD specific words (column information from the Access database) that is concatenated to other columns from the Access database. Is there an "in string" font/bolding command like in Excel? In Excel, I can set selected words in a cell to different fonts/bolding with this:
"&""Arial,Bold""Columbus All-Breed Training Club" & Chr(10) _
Is there anything like that in Word? An excerpt from the code looks like:
If rsTrialEntries("ArmBandNbr") <> 0 Then
.Cells(3).Range.Text = rsTrialEntries("ArmBandNbr")
.Cells(3).Range.Font.Bold = wdToggle
End If
.Cells(4).Range.Text = rsTrialEntries("DogName") _
& " " _
& rsTrialEntries("RegNbr") _
Cell 3 is BOLD and works fine. In Cell 4 I only want to BOLD the "rsTrialEntries("DogName").
Thanks,
gsdcrazy
I am building a Word document with a document template using information in an Access database. I use the "with" structure to define and populate the table cells. In certain cells, I need to BOLD specific words (column information from the Access database) that is concatenated to other columns from the Access database. Is there an "in string" font/bolding command like in Excel? In Excel, I can set selected words in a cell to different fonts/bolding with this:
"&""Arial,Bold""Columbus All-Breed Training Club" & Chr(10) _
Is there anything like that in Word? An excerpt from the code looks like:
If rsTrialEntries("ArmBandNbr") <> 0 Then
.Cells(3).Range.Text = rsTrialEntries("ArmBandNbr")
.Cells(3).Range.Font.Bold = wdToggle
End If
.Cells(4).Range.Text = rsTrialEntries("DogName") _
& " " _
& rsTrialEntries("RegNbr") _
Cell 3 is BOLD and works fine. In Cell 4 I only want to BOLD the "rsTrialEntries("DogName").
Thanks,
gsdcrazy