G
Gil Carter
Hi All,
How does one put a hyphen in all empty cells in a table?
tia
Gil
Some of my efforts are:
Sub a1()
'
' a1 macro
'
'
Selection.MoveRight Unit:=wdCell
Dim MyVar, MyCheck
MyCheck = IsNull(MyVar) ' Returns False.
'MyVar = ""
'MyCheck = IsNull(MyVar) ' Returns False.'
'MyVar = Null
'MyCheck = IsNull(MyVar) ' Returns True.
MyVar = Selection.Text
If MyCheck = IsNull(MyVar) = True Then
Selection.TypeText Text:="-"
ElseIf MyCheck = IsNull(MyVar) = False Then
' End If
' If MyVar = Null Then
' Selection.TypeText Text:="-"
' ElseIf MyCheck = False Then
' End If
End If
End Sub
How does one put a hyphen in all empty cells in a table?
tia
Gil
Some of my efforts are:
Sub a1()
'
' a1 macro
'
'
Selection.MoveRight Unit:=wdCell
Dim MyVar, MyCheck
MyCheck = IsNull(MyVar) ' Returns False.
'MyVar = ""
'MyCheck = IsNull(MyVar) ' Returns False.'
'MyVar = Null
'MyCheck = IsNull(MyVar) ' Returns True.
MyVar = Selection.Text
If MyCheck = IsNull(MyVar) = True Then
Selection.TypeText Text:="-"
ElseIf MyCheck = IsNull(MyVar) = False Then
' End If
' If MyVar = Null Then
' Selection.TypeText Text:="-"
' ElseIf MyCheck = False Then
' End If
End If
End Sub