Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
![]()
The .Range.Text property of a bookmark will return a String on which you can
use the Left(), Mid() and Right() functions, in conjunction with the Instr() function to determine the point at which you want to break the string. For example if you had a bookmark bmdata containing my name With ActiveDocument.Bookmarks("bmdata").Range MsgBox "My first name is " & Left(.Text, InStr(.Text, " ") - 1) MsgBox :My last name is " & Mid(.Text, InStr(.Text, " ") + 1) End With would display message boxes containing "My first name is Doug" and "My last name is Robbins" -- Hope this helps. Please reply to the newsgroup unless you wish to avail yourself of my services on a paid consulting basis. Doug Robbins - Word MVP, originally posted via msnews.microsoft.com "Giddyup" wrote in message ... In Word 2003 using bookmarks - is there a method to reference a book mark field partially? - Filling out a form where specific characters go into specific positions so I need to split a bookmark in two two seperate fields. |
Reply |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to print a document partially landscape and partially portrai | Page Layout | |||
error: bookmark self-reference | Microsoft Word Help | |||
Curser Position at Start Up | Page Layout | |||
How does one reference the VALUE of a FORMCHECKBOX bookmark? | Microsoft Word Help | |||
cross reference bookmark | Microsoft Word Help |