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.

Nintendo Switch review: Hands-on with the intuitive modular console and its disappointing games…

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

The updated 'Corel Painter inside Photoshop' plugin ParticleShop offers new brushes

New MacBook Pro 2017 release date, UK price and tech specs: Kaby Lake MacBook Pro to launch in…