Bekijk de onderstaande video om te zien hoe je onze site als een web app op je startscherm installeert.
Opmerking: Deze functie is mogelijk niet beschikbaar in sommige browsers.
Sub RijKleuren()
Dim oTbl As Table
Dim i As Integer
If Selection.Information(wdWithInTable) = True Then
Set oTbl = Selection.Tables(1)
For i = 1 To oTbl.Rows.Count
If InStr(oTbl.Cell(i, 3).Range.Text, "DICHT") > 0 Then
oTbl.Rows(i).Cells.Shading.BackgroundPatternColorIndex = wdGray25
Else
oTbl.Rows(i).Cells.Shading.BackgroundPatternColorIndex = wdWhite
End If
Next i
Else
MsgBox "Dit is geen tabel"
End If
End Sub
Sub RijKleuren()
Dim oTbl As Table
Dim i As Integer
Dim StrPwd As String
StrPwd = "11111"
Application.ScreenUpdating = False
If ActiveDocument.ProtectionType <> wdNoProtection Then ActiveDocument.Unprotect Password:=StrPwd
If Selection.Information(wdWithInTable) = True Then
Set oTbl = Selection.Tables(1)
For i = 1 To oTbl.Rows.Count
If InStr(oTbl.Cell(i, 3).Range.Text, "DICHT") > 0 Then
oTbl.Rows(i).Cells.Shading.BackgroundPatternColorIndex = wdGray25
Else
oTbl.Rows(i).Cells.Shading.BackgroundPatternColorIndex = wdWhite
End If
Next i
Else
MsgBox "Dit is geen tabel"
End If
Application.ScreenUpdating = True
ActiveDocument.Protect wdAllowOnlyFormFields, True, StrPwd
End Sub
Sub RijKleuren()
Dim oTbl As Table
Dim i As Integer
Dim StrPwd As String
StrPwd = "11111"
Application.ScreenUpdating = False
If ActiveDocument.ProtectionType <> wdNoProtection Then ActiveDocument.Unprotect Password:=StrPwd
If Selection.Information(wdWithInTable) = True Then
If InStr(UCase(Selection.Cells(1).Range.Text), "DICHT") > 0 Then
Selection.Rows(1).Shading.BackgroundPatternColorIndex = wdGray25
Else
Selection.Rows(1).Shading.BackgroundPatternColorIndex = wdWhite
End If
End If
Application.ScreenUpdating = True
ActiveDocument.Protect wdAllowOnlyFormFields, True, StrPwd
End Sub
We gebruiken essentiële cookies om deze site te laten werken, en optionele cookies om de ervaring te verbeteren.