how to fill all cells that are empty in a table with a hyphen?
From: Gil Carter (emr.RemoveThisWord_at_surewest.net)
Date: 02/13/05
- Next message: Helmut Weber: "Re: how to fill all cells that are empty in a table with a hyphen?"
- Previous message: Tom Ogilvy: "Re: VBA, Bookmarks, Word and Excel... help please!"
- Next in thread: Helmut Weber: "Re: how to fill all cells that are empty in a table with a hyphen?"
- Reply: Helmut Weber: "Re: how to fill all cells that are empty in a table with a hyphen?"
- Reply: Jezebel: "Re: how to fill all cells that are empty in a table with a hyphen?"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 13 Feb 2005 13:49:38 -0800
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
- Next message: Helmut Weber: "Re: how to fill all cells that are empty in a table with a hyphen?"
- Previous message: Tom Ogilvy: "Re: VBA, Bookmarks, Word and Excel... help please!"
- Next in thread: Helmut Weber: "Re: how to fill all cells that are empty in a table with a hyphen?"
- Reply: Helmut Weber: "Re: how to fill all cells that are empty in a table with a hyphen?"
- Reply: Jezebel: "Re: how to fill all cells that are empty in a table with a hyphen?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|