+ Reply to Thread
Results 1 to 2 of 2

Getting value of selected item within a ComboBox ~ Microsoft Word

Hybrid View

  1. #1
    Registered User
    Join Date
    09-02-2013
    Location
    Malta
    MS-Off Ver
    2010
    Posts
    1

    Getting value of selected item within a ComboBox ~ Microsoft Word

    Hi all, I've looked all over the internet and all I got is results for excel, which I already know how to do.

    My question is how can I acquire the value of a selected item within one of three comboboxes i have a word document

    I constructed a macro where it basically sends an e-mail to a particular person with an attachment of this very word document...as far as the attachment goes all is well. I send an email successfully with the attachment.

    however this document has three comboboxes, for the sake of the explanation i'll keep it simple.

    a combobox has a list of names

    I want to get the selected item's value so that i'll utilize it within the body of the e-mail.

    hope somebody can help. Thanks

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,481

    Re: Getting value of selected item within a ComboBox ~ Microsoft Word

    Something like this maybe.

    ?activedocument.ContentControls(1).Range.Text
    Otherwise post example so we can see exactly what type of combo box you used.
    Cheers
    Andy
    www.andypope.info

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 3
    Last Post: 04-02-2013, 06:02 PM
  2. Combobox: How to determine the location of the selected item if combobox has rowsource
    By ahsanzafar in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-11-2012, 03:24 PM
  3. Value of selected item in Combobox
    By Boris88 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-22-2011, 09:56 AM
  4. ComboBox selected item
    By ballabali in forum Excel General
    Replies: 1
    Last Post: 12-15-2005, 11:55 AM
  5. ComboBox fails when last item selected first
    By MBlake in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-28-2005, 03:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1