H
hlngus
How does one create an auto-generated text file with tabs embedded?
I want to emulate a user keying in a tab between lets say the first
word and second word of each line.
The end result is that once pasted, the second word will later be
aligned in the same column position of each line, regardless of the
length of the first word.
I want the following example, with a character that Word can translate
into a tab, with user-entered tabs.
Name: John
Address: Main
What is the character that will generate an ascii 9, that Word can
recognize?
I thought it was the ^t , as in the following snippet:
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "^t"
.Replacement.Text = SPACE
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
Thanks.
I want to emulate a user keying in a tab between lets say the first
word and second word of each line.
The end result is that once pasted, the second word will later be
aligned in the same column position of each line, regardless of the
length of the first word.
I want the following example, with a character that Word can translate
into a tab, with user-entered tabs.
Name: John
Address: Main
What is the character that will generate an ascii 9, that Word can
recognize?
I thought it was the ^t , as in the following snippet:
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "^t"
.Replacement.Text = SPACE
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
Thanks.