Chapter 10 Creating Modules and Procedures 265
Object Property Setting
TextBox2 Multiline
Name
ReadOnly
ScrollBars
TabStopTrue
txtMkt
True
Vertical
False
Label1 Font
Name
TextBold
lblSales
“Sales”
Label2 Font
Name
TextBold
lblMkt
“Marketing”
Button1 Name
TextbtnSales
“Add Name”
Button2 Name
TextbtnMkt
“Add Name”
Button3 Name
TextbtnQuit
“Quit”
Form1 Text “Assign Department
Teams”- Resize and position the objects so that your form looks similar to this:
Now you’ll add a module and create the general-purpose AddName Sub procedure.- On the Project menu, click the Add New Item command, select the Module template,
and then click Add.
A new module appears in the Code Editor.