A family of Microsoft word processing software products for creating web, email, and print documents.
Just as oRng.Cells(1) is the cell that contains the range, oRng.Tables(1) is the table that contains the range. Using that expression, you can write your code as
Private Sub Document_ContentControlOnExit(ByVal ContentControl As ContentControl, Cancel As Boolean)
''' table 1 is networking, table 2 is security analysis
Dim oRng As Word.Range
Dim intRow As Integer, intCol As Integer
Dim oTbl As Word.Table
Set oRng = ContentControl.Range
Set oTbl = oRng.Tables(1)
intRow = oRng.Cells(1).RowIndex
intCol = oRng.Cells(1).ColumnIndex
Select Case ContentControl.Range.Text
Case "OK"
oRng.Cells(1).Shading.BackgroundPatternColor = -704577639
oTbl.Cell(intRow, 6).Range.Text = Format(Now, "yyyy/MM/dd")
Case "N/A"
oRng.Cells(1).Shading.BackgroundPatternColor = -603930625
oTbl.Cell(intRow, 6).Range.Text = ""
Case Else ''' clear contents
oRng.Cells(1).Shading.BackgroundPatternColor = -654246093
oTbl.Cell(intRow, 6).Range.Text = ""
End Select
End Sub