yahoo
08-23-2012, 05:12 AM
Hi there
I'm struggling with changing colour of first 11 chars in cell(I'll use some instrrev etc to get the accurate number later on). Didnt expect it to be so difficult as it's so easy in excel...
Anyway here is the part of my code where I go through all cells in one column and make the text bold. Would appreciate if somebody come up with an idea how to make first few chars red. I should mention that I write the code in Access 2010 (and open Word 2010 template) hence the "With appword" bit
With appWord.Tables(1)
For Each oCell In .Range.Columns(3).Cells
oCell.Range.Bold = True
Next
.
.
.
End With
I'm struggling with changing colour of first 11 chars in cell(I'll use some instrrev etc to get the accurate number later on). Didnt expect it to be so difficult as it's so easy in excel...
Anyway here is the part of my code where I go through all cells in one column and make the text bold. Would appreciate if somebody come up with an idea how to make first few chars red. I should mention that I write the code in Access 2010 (and open Word 2010 template) hence the "With appword" bit
With appWord.Tables(1)
For Each oCell In .Range.Columns(3).Cells
oCell.Range.Bold = True
Next
.
.
.
End With