Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Joanne Christensen Joanne Christensen is offline
external usenet poster
 
Posts: 1
Default Adding user's selected text as new item in listbox.

I am trying to create a macro that would take whatever text has been
highlighted in a Word Document by the user and then add it on the fly to a
list box on a modeless form. The part that I am having trouble is somehow
capturing the contents of the selected text so I can make mytext in the
ListBox1.AddItem (mytext) be the highlighted text. I am lost at the present
time trying to sort out using range and selection. If there is anyone who
could help me with me, I would really appreciate it. Thanks!
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
Adding an item at the end of each line Nicole Ward Microsoft Word Help 1 August 25th 07 06:10 PM
Selected item doesn't automatically copy to clipboard Kerri N Microsoft Word Help 2 October 26th 06 11:56 PM
Adding a Template to a Menu Item Gurmukh Microsoft Word Help 1 October 17th 06 12:53 AM
adding the user's name and date to the top of a document Stacy M Microsoft Word Help 2 January 3rd 06 05:16 PM
The first item in the drop-down list can't be selected? Norman Lowe Microsoft Word Help 3 March 24th 05 11:05 AM


All times are GMT +1. The time now is 03:34 PM.

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"