How do I change the below code to fill all combo boxes all on sheets. All the names of the controls should be the same on each sheet since each sheet was created from a copy of the original.
Please Login or Register to view this content.
How do I change the below code to fill all combo boxes all on sheets. All the names of the controls should be the same on each sheet since each sheet was created from a copy of the original.
Please Login or Register to view this content.
Last edited by randell.graybill; 06-12-2009 at 01:26 AM.
see if this works
Please Login or Register to view this content.
Hope that helps.
RoyUK
--------
For Excel Tips & Solutions, free examples and tutorials why not check out my web site
Free DataBaseForm example
I double checked that I had the right name for the combo box and i do but I get the following error
Compile error:
Method or data member not found.
What could be causing this?
Also I tried to use the for each ws code for something slightly different but it just kept looping on the current sheet.
I have a spreadsheet with all of the above macros.Please Login or Register to view this content.
I have tidied up your code, You have it as an open event, but in a Standard Module. It must be in the workbook module
Copy the codePlease Login or Register to view this content.
Select the workbook in which you want to store the code
Hold the Alt key, and press the F11 key, to open the Visual Basic Editor
In the Project Explorer, find your workbook, and open the list of Microsoft Excel Objects
Right-click on the ThisWorkbook object, and choose View Code
Where the cursor is flashing, choose Edit | Paste
Note: delete the original code from your workbook
Thanks alot roy, your always a big help.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks