
4,386 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
i can add table and get cell , but can't change the cell background color
Did you try record this change using Word?
For me is working fine:
Selection.Shading.Texture = wdTextureNone
Selection.Shading.ForegroundPatternColor = wdColorAutomatic
Selection.Shading.BackgroundPatternColor = -721354855
Ater that you declate Table, cells range and replace selection command for cells.range like this
Dim t As Table: Set t = ActiveDocument.Tables(1)
t.Range.Cells(2).Shading.BackgroundPatternColor = wdColorBlue
In vb.net delete set commend and so on...
Regards