Hello All,
I have asked this question on Mr. Excel. I was wondering if you could all try to help as well? Thank you!
http://www.mrexcel.com/forum/excel-q...-down-box.html
Hello All,
I have asked this question on Mr. Excel. I was wondering if you could all try to help as well? Thank you!
http://www.mrexcel.com/forum/excel-q...-down-box.html
Last edited by Apollo4life; 10-23-2014 at 09:18 AM.
Hello Apollo4Life,
Welcome to the Forum!
Here is a VBA macro example that will display the selected value.
Please Login or Register to view this content.
Sincerely,
Leith Ross
Remember To Do the Following....
1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.2. Thank those who have helped you by clicking the Star below the post.3. Please mark your post [SOLVED] if it has been answered satisfactorily.
Old Scottish Proverb...
Luathaid gu deanamh maille! (Rushing causes delays!)
I put in the code and have it where Textbox1 is on a userform. When I try this and have it to fire on a button click nothing happens.
Please Login or Register to view this content.
Last edited by Apollo4life; 10-22-2014 at 02:10 PM.
Hello Apollo4Life,
To help you find a solution to this problem, you will neeed to post a copy of your workbook.
If your workbook contains any sensitive information, please redact that information before you post.
How To Post Your Workbook
- At the bottom right of the Reply window, Click the button Go Advanced
- At the top of the Your Message Window, in the first row of icons, Click the Paperclip icon.
- Click the Add Files button at the top right in the dialog box. This displays the File Manager dialog.
- Click the Select Files button at the bottom middle of the dialog.
- In the new window Find the file you want to upload, select it, and Click Open.
- You will now be back in the File Manager dialog. Click the bottom Middle button Upload File.
- Wait until the file has completely uploaded before you exit the File Manager dialog.
It works great now!! I just had to (0) to the end of Sel = HTMLdoc.getElementByName("Car_Year") to make it Sel = HTMLdoc.getElementByName("Car_Year") (0) and this worked perfectly. Thank you for all your help!
Last edited by Apollo4life; 10-23-2014 at 11:43 AM.
Hello Apollo4Life,
Ah, I see what you wanted to do now. Each Option item is part of a collection. The first item starts at zero. By using the subscript, you can can access any item in the collection.
The Selected attribute of an Option item is used to display that item in the Select drop down.
Glad that you have it working the way you want.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks