Design A VBA User Form - ComboBox and Open File Dialogue Box Controls
Design A VBA User Form - ComboBox and Open File Dialogue Box Controls
Design a VBA User Form - ComboBox and Open File Dialogue Box Controls
http://www.homeandlearn.org/add_new_photo_tab.html
1/5
4/7/2015
Design a VBA User Form - ComboBox and Open File Dialogue Box Controls
Click on your Add New Photo tab at the top of your form. You should see a blank page for this tab.
Using the skills you've just learnt in the previous sections, design a page like this one:
http://www.homeandlearn.org/add_new_photo_tab.html
2/5
4/7/2015
Design a VBA User Form - ComboBox and Open File Dialogue Box Controls
This is more or less the same as the last one. The only new control so far is the ComboBox.
ComboBox Control
To add a ComboBox, click the item circled below in the toolbox:
When you draw one out, set the following properties for it:
Text: Camera
Height: 20
Width: 110
Left: 96
Top: 228
3/5
4/7/2015
Design a VBA User Form - ComboBox and Open File Dialogue Box Controls
When you click on Additional Controls you should see a dialogue box appear. Scroll down until you
come to Microsoft Common Dialog Controls:
http://www.homeandlearn.org/add_new_photo_tab.html
4/5
4/7/2015
Design a VBA User Form - ComboBox and Open File Dialogue Box Controls
Check the box next to Microsoft Common Dialog Controls and click OK. You should then see the new
controls in the toolbox. Select the Open File dialogue box, circled in the image below:
Draw one out somewhere at the bottom your form and it should look like this:
The dialogue box control is not a visible control. What that means is that when you run your form, you
won't see it anywhere. The sole purpose of this control is to manipulate dialogue boxes. You'll see how
it works when we write the code for it later.
The only property we'd like to change for this control is the Name property. Change it from the default
CommonDialog1 to CD1, which is a bit shorter.
And that's the form designed - we can now start coding. We'll do that in the next lesson below.
http://www.homeandlearn.org/add_new_photo_tab.html
5/5