D
Dan
So, I am trying to create a dictionary with my own temrs
and definitions. I have created a "Definition" document
that contains a 2-column table. First column = Word,
second = Meanings/Definitions.
I have created a code for my "searc" box:
Sub Test()
Dim Message, Title, Default, MyValue
Message = "Search" ' Set prompt.
Title = "Dictionary" ' Set title.
' Display message, title, and default value.
MyValue = InputBox(Message, Title, Default, 100, 100)
End Sub
Now, I am confused with how I can link a search to that
box? Would I use an altered form of this code:
Selection.Find.ClearFormatting
With Selection.Find
.Text = ""
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
How then could I link it to the box that I created?
THANKS!
and definitions. I have created a "Definition" document
that contains a 2-column table. First column = Word,
second = Meanings/Definitions.
I have created a code for my "searc" box:
Sub Test()
Dim Message, Title, Default, MyValue
Message = "Search" ' Set prompt.
Title = "Dictionary" ' Set title.
' Display message, title, and default value.
MyValue = InputBox(Message, Title, Default, 100, 100)
End Sub
Now, I am confused with how I can link a search to that
box? Would I use an altered form of this code:
Selection.Find.ClearFormatting
With Selection.Find
.Text = ""
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
How then could I link it to the box that I created?
THANKS!