help with a word problem

  reddwarfcrew 17:31 06 Feb 04
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.

Best phone camera 2016/2017: Galaxy S7 vs iPhone 7 vs Google Pixel vs HTC 10 Evo vs OnePlus 3T vs…

1995-2015: How technology has changed the world in 20 years

Best Christmas Agency Projects of 2016

Super Mario Run preview | Hands-on first impressions of Super Mario Run: Mario's iPhone & iPad…