Results 1 to 4 of 4

Thread: Adding to ComboBox in a Word.doc SOMEONE KNOW?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2005
    Location
    in Poland
    Posts
    390

    Adding to ComboBox in a Word.doc SOMEONE KNOW?

    Hi All

    If someone can to say, that something I know about Visual Basic, it nobody can't to say, that something I know about VBA in MSWord.doc. So, this will be as the saint of truth.

    Now I need in this a some help. How to make to be able to add some of items to a combobox? In run-time but.... I want save in this document these changes and I want to print on a my printer this Word.doc

    Useful a bit example of code will be here

    Thanks in advance
    Last edited by Tamgovb; Feb 9th, 2007 at 05:22 AM.
    I know, I know, my English is bad, sorry .....

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2005
    Location
    in Poland
    Posts
    390

    Re: Adding to ComboBox in a Word.doc

    someone know?
    I know, I know, my English is bad, sorry .....

  3. #3
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Adding to ComboBox in a Word.doc SOMEONE KNOW?

    combobox.additem to add items to a combobox, but i don't understand the rest of the question, how can you print the combobox as only the selected item shows
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  4. #4
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    Re: Adding to ComboBox in a Word.doc SOMEONE KNOW?

    If I am not wrong, you can generate values for a combobox at runtime but you cannot save values in the combobox for later use until and unless during runtime you save the values somewhere... say for a text file... Whenever the word starts, it will pull up details from the text file to generate the Combobox...

    Hope this helps...
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved


    MyGear:
    ★ CPU ★ Ryzen 5 5800X
    ★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
    ★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
    ★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
    ★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
    ★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
    ★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
    ★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
    ★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
    ★ Keyboard ★ TVS Electronics Gold Keyboard
    ★ Mouse ★ Logitech G502 Hero

Posting Permissions

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



Click Here to Expand Forum to Full Width