Re: Macrofield by Chad
Chad
Tue Aug 31 17:59:20 CDT 2004
hi peter
Set oFld = 'the field you just inserted
oFld.Select
Selection.MoveRight Unit:=wdCharacter, Count:=1
ActiveWindow.View.ShowFieldCodes = True
Selection.MoveLeft Unit:=wdCharacter, Count:=1
Selection.TypeBackspace
ActiveWindow.View.ShowFieldCodes = False
oFld.Update
Regards,
Chad
"Peter Lingo" <peter.lingo@tiscali.de> wrote in message
news:ch2ur8$udb$1@online.de...
> But how can I make this by vba? Manual by keyboard it is possible.
>
> Thanks
> Peter
>
> "Word Heretic" <myfullname@tpg.com.au> schrieb im Newsbeitrag
> news:j4q4j0917ns3ufirlnsntpfd28re854h1r@4ax.com...
> > G'day "Peter Lingo" <peter.lingo@tiscali.de>,
> >
> > Alt+F9 (reveal field codes)
> > Edit the macrobutton field to remove the trailing space
> > Alt+F9 (Hide field codes)
> >
> > Steve Hudson - Word Heretic
> > Want a hyperlinked index? S/W R&D? See WordHeretic.com
> >
> > steve from wordheretic.com (Email replies require payment)
> >
> >
> > Peter Lingo reckoned:
> >
> >>Hello
> >>when I put a macrofield with text content in a document there is always
a
> >>space at the end of this field and if you make a font.StrikeThrough the
> >>line
> >>is one character (the space) longer than the word. How can I avoid this?
> >>
> >>Thanks Peter
> >>
> >
>
>