Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

* .DOT "Click here to enter project name"

0 views
Skip to first unread message

Windows Developer

unread,
Jan 14, 2000, 3:00:00 AM1/14/00
to
I am creating a template and I want to provide some sample text so that the
users will see how their document will look before they type in their
contents. But I want to make it so that the sample text can be easily
replaced by double-clicking to select the whole block of sample text and
then just type over it.

For example, [Click here to enter project name]. How do I do this?

thx.

Cindy Meister -WordMVP-

unread,
Jan 14, 2000, 3:00:00 AM1/14/00
to
Hi Windows,

Seems to me I just answered this...

Take a look in Help at the info on Word's MACROBUTTON field. You can have the
sample text as the display, and the macro that executes when the user
double-clicks will delete the field (along with the sample text) leaving the
user ready to type. Some of the templates that come with Word use this
technique. The code is quite simple and can be used for all the fields:

Sub UserInput()
Selection.Range.Delete
'Delete a Macrobutton field when double-clicked
End Sub

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister
http://go.compuserve.com/MSOfficeForum

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)


Suzanne S. Barnhill

unread,
Jan 14, 2000, 3:00:00 AM1/14/00
to
You might like to investigate some of the templates shipped with Word to see
how they do it. I believe they mostly use a MACROBUTTON field with no macro
associated with it, just the "Click here" text. Provided they have "Typing
replaces selection" enabled, they don't even have to double-click because
clicking selects the entire field.

--
Suzanne S. Barnhill
Microsoft Word MVP
Words into Type
Fairhope, AL USA

Windows Developer <nos...@nospam.com> wrote in message
news:#o8wnoqX$GA...@cppssbbsa02.microsoft.com...


> I am creating a template and I want to provide some sample text so that
the
> users will see how their document will look before they type in their
> contents. But I want to make it so that the sample text can be easily
> replaced by double-clicking to select the whole block of sample text and
> then just type over it.
>
> For example, [Click here to enter project name]. How do I do this?
>

> thx.
>
>

0 new messages