help with a word problem

  reddwarfcrew 17:31 06 Feb 2004
Locked

Hi,

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.

Elsewhere on IDG sites

OnePlus 5T review: Hands-on

Illustrator Andrés Lozano on his improv line work, brazen use of colours & hand sketching

iPhone X review

Comment envoyer gratuitement des gros fichiers ?