help with a word problem

  reddwarfcrew 17:31 06 Feb 04


I have a document with a userform that runs when the file is opened. In this from is a textbox with the name 'wfi'.

When the form is closed, it puts the value entered in the box call 'wfi' at a bookmark.

Now the 'wfi.value' will be a number and *sometimes* it will be prefixed with the letter 'P'.

What I want to do is only have the numerical part of 'wfi.value' put where the bookmark is.

can anyone help? At the moment, my code is:

Selection.GoTo What:=wdGoToBookmark, Name:="wfi"

Selection.TypeText Text:=wfi.Value

This thread is now locked and can not be replied to.

Hands-on: Acer Predator Triton 700 review

D&AD Awards 2017: see the best design, advertising, illustration, animation and VR of the past year

How to lose weight with an Apple Watch