info@forsthaus-auerhahn.de was telling us:
info@forsthaus-auerhahn.de nous racontait que :
> Hi,
>
> hmm i test your code, but doesn´t work correct. is there a difference
> between a text field and a text box. word says that the name of my box
> is "Text Box 10". How can i delete the content of this box?
You originally asked about a text field (Inserted in a document with the
Forms Toolbar), but are now writing about text boxes (Inserted with the
Controls Toolbar, or on a userform).
Which is it? The code is not the same and will not be stored in the same
place...

Signature
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org
info@forsthaus-auerhahn.de - 27 Sep 2006 12:22 GMT
I wantr to delete the content of a text box inserted by controls
toolbar. i was troubled with the difference of text field and text box.
sorry about that. text box is in german a "Textfeld". it sounds similar
than text field ;-)
Jean-Guy Marcil schrieb:
> info@forsthaus-auerhahn.de was telling us:
> info@forsthaus-auerhahn.de nous racontait que :
[quoted text clipped - 17 lines]
> jmarcilREMOVE@CAPSsympatico.caTHISTOO
> Word MVP site: http://www.word.mvps.org
Helmut Weber - 27 Sep 2006 12:30 GMT
Hi Jean-Guy Marcil,
a lesson in german free of charge
:-)
forsthaus = forester's lodge
auerhahn = wood grouse
Have a nice day
Helmut
Hallo Tobias,
try:
ActiveDocument.Shapes("Text Box 10").TextFrame.TextRange = ""
or:
ActiveDocument.Shapes("Text Box 10").TextFrame.TextRange.delete
There are very subtle differences between both methods.
Da gibt es ganz feine Unterschiede zwischen den beiden Methoden..
>is there a difference between a text field and a text box.
A textformfield is something quite different.
Ein Textformfeld ist etwas ganz anderes.

Signature
Greetings from Bavaria, Germany
Helmut Weber, MVP WordVBA
Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"
info@forsthaus-auerhahn.de - 27 Sep 2006 12:43 GMT
hallo helmut,
jetzt klappts prima :-)
vielen vielen dank
Helmut Weber schrieb:
> Hallo Tobias,
>
[quoted text clipped - 18 lines]
> Win XP, Office 2003
> "red.sys" & Chr$(64) & "t-online.de"