Download as xlsx, pdf, or txt
Download as xlsx, pdf, or txt
You are on page 1of 7

What you learn Working with ActiveX and Userforms

Link Topic Covered What you Learn

ActiveX Using ActiveX Controls ● How to work with ActiveX controls


● Check Box to toggle screen settings (scroll area, full screen etc.)
● Check Box to Show or Hide Help (easy method of creating help for
you applications)
● Combo Box for easy sheet navigation (great for larger workbooks)
● Hide or show other ActiveX controls based on user selection

InputForm Create a UserForm to Input ● How to work with UserForms


Data ● Create a UserForm for Data Input
● How to work Check Boxes
● Enable/Disable Userform controls based on user selection

ComboForm Create a UserForm that Create a Userform that includes:


Documents Comments & - Combo Box
External links - Option Buttons
- A static image
and documents all comments or external links inside a workbook in
either a separate workbook or the existing workbook.
Using ActiveX Controls

1 Show Help check box, shows


these shapes when it's checked
and hides them when it's
unchecked. Try it out. Go to
Developer -> View code to see the
code.

2
The drop-down allows quick
navigation to a specific sheet. If
you add new sheets, they are
automatically added to the drop-
down.

Behind this shape is a table we need in


Sales Report
3
You can use VBA to hide or a later lecture
show specific controls. If you select 2018 0
2017, the option buttons disappear Budget 175,104 -100%
and appear again if you select
2018.
able we need in
Data for Active X Drop-down

2020 Forecast Budget 2019 Year Controls


Company A 34,196 24,325 29,938 31,955 2020 1
Company B 20,898 33,681 31,955 11,598 2019 0
Company C 46,994 39,295 52,311 53,963
Company D 43,695 45,266 60,900 65,965
Create a UserForm to Input Data
1. UserForm basics
2. Create a UserForm to input data below.
Add a Check Box for invoice created.
The Check Box is only enabled if values for customer and amount have been input.

Customer Amount Invoice


Name Invoiced Created
Wendal 300 No
Twist 400 Yes
Create a UserForm that Documents Comments & External links

Create a UserForm with Combo Box and Option Buttons to document comments and external links to other Workbooks.
The tool should work as follows:
User selects one of the below tasks from the Combo Box:
- document all comments within the workbook, including the address of the cells
- or to document the cell addresses that contain external links to other Workbooks
They then select from the Option Button, whether they'd like the report in this Workbook or in a new Workbook

Workbook
Check
nks to other Workbooks.

a new Workbook

You might also like