How JustAnswer Works:

  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.

Ask Suryanto Your Own Question

Suryanto
Suryanto, Programmer
Category: Microsoft Office
Satisfied Customers: 538
Experience:  8 years experience in VBA(Excel, Word, Outlook and Access)
Type Your Microsoft Office Question Here...
Suryanto is online now
A new question is answered every 9 seconds

Hi! Im trying to link an activex combobox in MS Word 2007

Resolved Question:

Hi! I'm trying to link an activex combobox in MS Word 2007 to a database in either Excel or Access with VBA. I just need someone to walk me through it, please.
Submitted: 2 years ago.
Category: Microsoft Office
Expert:  Suryanto replied 2 years ago.
Dear Customer,

Welcome to Justanswer.

Please let me know if you still need help

Thank you
Suryanto
Customer: replied 2 years ago.
Yes, I do, please.
Expert:  Suryanto replied 2 years ago.
Ok. Could you send me your file and explain your problem ?
Please go to www.wikisend.com and upload your file there.
Once you do that you get a page that has the File Id and Download Link.

Please
copy the fileid or download link and please paste here in your reply

graphic
Thank you
Customer: replied 2 years ago.
#1 = File ID: 166640 = http://wikisend.com/download/166640/ComboBox examples.doc

#2 = File ID: 448344 = http://wikisend.com/download/448344/ComboBox examples.xls

I have added activex combo boxes to file 1. Instead of inserting code in the actual document with what I want the lists to be, I'd like to have the boxes populate from lists loaded in file 2. That way I can link not only file 1 but multiple documents to the lists in file 2.

Expert:  Suryanto replied 2 years ago.
Hi,

Sorry for delay. I will check and let you know

Thank you
Expert:  Suryanto replied 2 years ago.
Hi,

This is the code
http://wikisend.com/download/262526/ComboBox examples2a.doc

Make you have enabled macro to run because you open the file

When you open the word file, the macro will automatically open combobox example.xls and fill the combobox with the data from column A and column B

Hope this helps

Please let me know if you have problem or please click ACCEPT so I am compensated for my time
Bonus and Feedback are highly appreciated

Thank you
Customer: replied 2 years ago.

Thank you so much! It works in the example word doc I sent you but when I transfer the code to one of the actual documents I'll be using I get a runtime error 13 type mismatch.

 

Here is the real doc: File ID 566718

 

Do you know why it wouldn't work on this and can you make it work?

Expert:  Suryanto replied 2 years ago.
Hi,


This is the Word file
http://wikisend.com/download/443620/ADA_Request_Form1a.doc

This is the excel file. Put in the same folder with the word file
http://wikisend.com/download/263778/combobox entry.xls

The last code will assign object only if the control name is XXXXX XXXXX XXXXXXXXX


Hope this helps

Please let me know if you have problem or please click ACCEPT so I am compensated for my time ( I get nothing for my efforts until customer click Accept )
Bonus and Feedback are highly appreciated


Thank you
Suryanto

Customer: replied 2 years ago.
I will absolutely accept your answer and will definitely pay you extra but I need to make sure it works in reality, not just an example document (I have no idea why it would be different). As soon as it is working properly I will accept. Thank you!
Expert:  Suryanto replied 2 years ago.
Hi,

This is the Word file
http://wikisend.com/download/443620/ADA_Request_Form1a.doc

This is the excel file. Put in the same folder with the word file
http://wikisend.com/download/263778/combobox entry.xls

The last code will assign object only if the control name is XXXXX XXXXX XXXXXXXXX


Hope this helps
Suryanto, Programmer
Category: Microsoft Office
Satisfied Customers: 538
Experience: 8 years experience in VBA(Excel, Word, Outlook and Access)
Suryanto and 9 other Microsoft Office Specialists are ready to help you
Expert:  Suryanto replied 2 years ago.
In the example file, all controls are combobox.
Dim cbo As msforms.ComboBox
Set cbo = ish.OLEFormat.Object
The command won't generate error because all controls are combobox.

In the latest file, you have comboboxes, textboxes and command buttons . So the command Set cbo = ish.OLEFormat.Object will generate error because in variable declaration, cbo is MSForms.Combobox

I modified the last code to assign object only if the control name is XXXXX XXXXX XXXXXXXXX

Hope this helps

Thank you

JustAnswer in the News:

 
 
 
Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
JustAnswer.com...has seen a spike since October in legal questions from readers about layoffs, unemployment and severance.
Web sites like justanswer.com/legal
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.
 
 
 

What Customers are Saying:

 
 
 
  • My Expert answered my question promptly and he resolved the issue totally. This is a great service. I am so glad I found it I will definitely use the service again if needed. One Happy Customer New York
< Last | Next >
  • My Expert answered my question promptly and he resolved the issue totally. This is a great service. I am so glad I found it I will definitely use the service again if needed. One Happy Customer New York
  • Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help. Mary C. Freshfield, Liverpool, UK
  • This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!! Alex Los Angeles, CA
  • Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult. GP Hesperia, CA
  • I couldn't be more satisfied! This is the site I will always come to when I need a second opinion. Justin Kernersville, NC
  • Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around. Esther Woodstock, NY
  • Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know. Robin Elkton, Maryland
 
 
 

Meet The Experts:

 
 
 
  • jstinehelfer's Avatar

    jstinehelfer

    Information Systems Manager

    Satisfied Customers:

    36
    A+ Comptia Certified computer repair
< Last | Next >
  • http://ww2.justanswer.com/uploads/JS/jstinehelfer/2012-6-6_215146_Pictureofme1.64x64.png jstinehelfer's Avatar

    jstinehelfer

    Information Systems Manager

    Satisfied Customers:

    36
    A+ Comptia Certified computer repair
  • http://ww2.justanswer.com/uploads/JA/JasonJames122/2011-12-16_135647_jasonjamesheadshotweb.64x64.jpg JasonJames122's Avatar

    JasonJames122

    Computer Enthusiast

    Satisfied Customers:

    0
    I manage all information systems (network of Windows PC's and servers with Microsoft Office products) for a small business
  • http://ww2.justanswer.com/uploads/JE/jessmagz/2012-6-6_18129_jm.64x64.jpg Jess M.'s Avatar

    Jess M.

    Computer Support Specialist

    Satisfied Customers:

    270
    Computer Software Specialist for more than 10 years
  • http://ww2.justanswer.com/uploads/CH/chutz747/2011-11-6_14231_me.64x64.jpg The-PC-Guy's Avatar

    The-PC-Guy

    Computer Manager

    Satisfied Customers:

    260
    20 years experience providing remote computer support
  • http://ww2.justanswer.com/uploads/SE/Seashore2011/2011-12-6_33418_111205223015.64x64.jpg Chris L.'s Avatar

    Chris L.

    Support Specialist

    Satisfied Customers:

    120
    Certified Expert with over 10 years experience.
  • http://ww2.justanswer.com/uploads/SP/spherrod/2012-6-6_174244_1000852.64x64.JPG Steve Herrod's Avatar

    Steve Herrod

    Computer Support Specialist

    Satisfied Customers:

    116
    Trained in Microsoft Office from 2000 through to latest version 2010.
  • http://ww2.justanswer.com/uploads/KR/krkljatorm/2012-6-24_153417_ITMiro.64x64.jpg IT Miro's Avatar

    IT Miro

    Computer Scientist

    Satisfied Customers:

    94
    Bachelor's Degree in Information Technology, Microsoft Certified Professional