TechWhirl (TECHWR-L) is a resource for technical writing and technical communications professionals of all experience levels and in all industries to share their experiences and acquire information.
For two decades, technical communicators have turned to TechWhirl to ask and answer questions about the always-changing world of technical communications, such as tools, skills, career paths, methodologies, and emerging industries. The TechWhirl Archives and magazine, created for, by and about technical writers, offer a wealth of knowledge to everyone with an interest in any aspect of technical communications.
Subject:Re: Overlines continued From:Shawn Wilson <shawn -dot- wilson -at- IDSNET -dot- COM> Date:Wed, 10 Mar 1999 18:25:24 -0800
I believe you would use "Selection.Text"
Shawn Wilson
Technical Writer
Integrated Decision Systems
310-478-4015 x289
-----Original Message-----
From: Beth Friedman [SMTP:bjf -at- WAVEFRONT -dot- COM]
Sent: Wednesday, March 10, 1999 11:36 AM
To: TECHWR-L -at- LISTSERV -dot- OKSTATE -dot- EDU
Subject: Re: Overlines continued
In our previous episode, Clark, Robert said:
> . . . can any of our more advanced macro developer types
> come up with a macro for Word that allows the writer to highlight
the word,
> and apply a macro to use the field code application without having
to type
> in the word in the Field code text box?
It'd be trivial to do, but I don't have the time to fuss with it.
Basically, record a macro with generic text, then go to the macro
editor and replace the text with the variable "Selection$()" --
that's
the variable that's equivalent to whatever text is selected.
At least, that's how it'd work in WordBasic. I don't know VBA well
enough to know if the variable is the same.