Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Trefilov22 Trefilov22 is offline
external usenet poster
 
Posts: 31
Default Template VBA Question, Listbox

Here is what I need to do. I need to enter an address into a document based
on a users selection with a listbox. It drops the information into the
document, which is fine, but then later in the document, I need to grab the
person's name from that information, and insert it elsewhere into the
document. How can I accomplish this task? Any suggestions? It would be
like this, First Last then a comma. I need to grab the first and last,
before the comma. Not all names of course are the same length. Thanks in
advance for any, and all help!

Brian

  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default Template VBA Question, Listbox

http://gregmaxey.mvps.org/Populate_UserForm_ListBox.htm should give you a
few ideas
See also http://www.gmayor.com/Macrobutton.htm which shows how to grab
addresses and parts of addresses from Outlook - the techniques are similar.

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


Trefilov22 wrote:
Here is what I need to do. I need to enter an address into a
document based on a users selection with a listbox. It drops the
information into the document, which is fine, but then later in the
document, I need to grab the person's name from that information, and
insert it elsewhere into the document. How can I accomplish this
task? Any suggestions? It would be like this, First Last then a
comma. I need to grab the first and last, before the comma. Not all
names of course are the same length. Thanks in advance for any, and
all help!

Brian



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Listbox and Access query in Word? mcRon Microsoft Word Help 2 April 9th 07 06:12 PM
How to create listbox and checkbox in Word form Wellie Microsoft Word Help 1 April 25th 06 02:44 AM
Combobox, listbox, something! Kim K Microsoft Word Help 1 March 2nd 06 10:33 AM
Popup with ListBox options Gordon Tam Microsoft Word Help 1 March 23rd 05 05:08 AM
ListBox Meryl Microsoft Word Help 1 February 21st 05 09:41 PM


All times are GMT +1. The time now is 06:38 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"