How to Create, Configure and Use Form Controls and ActiveX Controls Scroll Bars in Excel 2007 and Excel 2010

Updated on December 23, 2016

Introduction

Welcome to my latest hub on Excel 2007 and Excel 2010. Today, I will be investigating the use of the Format Controls and ActiveX Scroll Bars. A user using a Scroll Bar can use the slide, click on the arrows at either end or click on bar itself to quickly and easily select the value they desire. This value is then stored in the spreadsheet which can then be displayed immediately on the worksheet and or stored for future use. They are not only easy to use and visually appealing, they also reduce errors and control the users input into your spreadsheet.

Today, we are going to create two Scroll bars, one Form Controls and one an ActiveX Controls Scroll Bar. You can see these below (the Form Control bar is on top).

Form Controls Scroll Bars (top) and ActiveX Controls Scroll Bars (bottom) in Excel 2007 and Excel 2010 allow users to quickly choose a value.
Form Controls Scroll Bars (top) and ActiveX Controls Scroll Bars (bottom) in Excel 2007 and Excel 2010 allow users to quickly choose a value. | Source

Form Controls versus ActiveX Controls scroll bars

There are two types of scroll bars, Form Controls and ActiveX Controls:

  • Form Controls are simpler to use and configure. Unless you have a need to use an ActiveX Controls scroll bar, I would recommend using Form Controls.
  • ActiveX Controls have far more flexibility than Form Controls. Using ActiveX Controls allows you to change the colour and text used, the mouse pointer in your scroll bar among other things. You can also use Visual Basic with ActiveX bars.

Note: ActiveX Controls are not Mac compatible.

The figure below shows the configuration options available for Format Controls scroll bars (left and middle) and ActiveX Controls scroll bars (all three).

Configurable options available for Scroll Bars in Excel 2007 and Excel 2010. Options available for Form Controls are on the left and in the middle. ActiveX Control bars have all three available to them.
Configurable options available for Scroll Bars in Excel 2007 and Excel 2010. Options available for Form Controls are on the left and in the middle. ActiveX Control bars have all three available to them. | Source

Adding the Developer tab

Before beginning, if the Developer tab is not added by default you will need to enable it. To do this:

If you are using Excel 2007:

  • Click the Excel button
  • Select Excel Options
  • Under Popular, check Show Developer tab in the Ribbon

Adding the Developer tab to Excel 2007.
Adding the Developer tab to Excel 2007. | Source

For those using Excel 2010:

  • Select the File menu
  • Click Options
  • Select the Customize Ribbon tab
  • Under Main Tabs tick Developer as shown below

Adding the Developer tab to Excel 2010.
Adding the Developer tab to Excel 2010. | Source

Creating and configuring a Form Controls scroll bar in Excel 2007 /andExcel 2010

First we need to create a scroll bar. To do this:

  • Click on the Insert button and select Scroll Bar in the Form Controls section. The Insert button can be found on the Developer tab in the Controls group
  • The cursor will change to a cross. Left click and drag to create the dimensions of your scroll bar

Now we have created the scroll bar, we need to configure it:

Configuring a Format Controls scroll bar in Excel 2007 and Excel 2010

Right click the scroll bar and select Format Control

  • On the Size tab, you can specify the exact Height and Width (this is extremely useful if you have a number of scroll bars and you want to ensure they are exactly the same size)
  • Next, select the Control tab. This has a number of values you will want to adjust to fully configure your scroll bar
  1. Minimum value: will likely be zero, but change this if it is required to be higher
  2. Maximum value: as with the minimum, adjust this as required
  3. Incremental change: if you click the arrows at either end of the scroll bar, how much the number will increase by
  4. Page change: if you click on the scroll bar itself, how much the number will increase by
  5. Cell link: This is the cell that displays the number that the user selects when using the scroll bar
  6. 3-D shading: Enables or disables 3-D shading

Note: Excel 2007 or Excel 2010 does not allow fractions within scroll bars. If you enter 0.5, Excel will change this to 0. If you want to use fractions, you will need to perform additional calculations on the results from the scroll bar.

Now to an example. I want users of my spreadsheet to select the interest rate of the mortgage they are interested in.

  • First I create a scroll bar with the following values selected on the Control tab
  • I chose to link my scroll bar with $M$3 as I need to convert this number to interest rates going up by .25% from 1 to 1.25 to 1.5 to 1.75 to 2 and so on.

Configuring the range used and the increments chosen in a Scroll Bar in Excel 2007 and Excel 2010.
Configuring the range used and the increments chosen in a Scroll Bar in Excel 2007 and Excel 2010. | Source

To achieve this, I add a formula to H6 which is the cell above the scroll bar as shown below.

Formula used to convert the output from a Scroll Bar from whole numbers to fractions in Excel 2007 and Excel 2010.
Formula used to convert the output from a Scroll Bar from whole numbers to fractions in Excel 2007 and Excel 2010. | Source

The formula creates the fractions I require (the /100 is because the cell is formatted as a %)

=(M3/4)/100

Note: (M4 is the Linked Cell for this Scroll Bar)

Working with ActiveX Controls scroll bars in Excel 2007 and Excel 2010

Creating an ActiveX Controls scroll bar is exactly the same as creating a Form Controls bar (except you choose the scroll bar in the ActiveX Controls section via the Insert button).

You also configure an ActiveX Controls bar identically using Format Control as above.

Where ActiveX Controls bar differ is that they have additional options.

Note: to reconfigure an ActiveX Controls scroll bar, you need to be in design mode. To access this, click on the Design Mode button on the Developer tab in the Controls group.

Note: Unless you are in design mode, you will not be able to right click on your scroll bar.

To access the additional options:

  • Right click on your scroll bar while in design mode
  • Select Properties

Configurable options available for ActiveX Controls Scroll Bars in Excel 2007 and Excel 2010.
Configurable options available for ActiveX Controls Scroll Bars in Excel 2007 and Excel 2010. | Source

As you can see from the figure above there are a number of options you can configure. A number of these are identical to those we configured when we configured the Form Control bar. The options that are unique to ActiveX Control bars include:

  • BackColor: the colour of the scroll bar itself
  • ForeColor: the colour of the arrows and the shadow (should you select it)
  • MouseIcon: allows you to use a picture as the mouse icon (should you want to)
  • MousePointer: allows you to select another pointer other than the default

You can also add Visual Basic code to your ActiveX button by right clicking the button and selecting View Code.

Conclusion

Scroll Bars allow you to control user input which both reduces errors and also improves the user experience. They are visually appealing, and scroll bars are easy and intuitive to use as users are very familiar with them. In this hub, I introduced both the Form Controls and ActiveX Controls scroll bar and using an example showed how to create and configure both. The ActiveX Controls bar has more options available compared to the simpler Format Controls bar.

In addition to scroll bars, I also have a number of hubs that investigate other controls available in Excel 2007 and Excel 2010. These include:

An example of a Combo Box which can be created in both Excel 2007 and Excel 2010
An example of a Combo Box which can be created in both Excel 2007 and Excel 2010 | Source

Combo Boxes use a configurable list to create a button with a drop down list suited for small lists such as days of the week, months of the year etc. My hub for Combo Boxes can be found here:

http://robbiecwilson.hubpages.com/hub/Configuring-and-Using-Combo-boxes-in-Excel-2007

An example of a Combo Box also with Conditional Formatting created using Excel 2007 and Excel 2010.
An example of a Combo Box also with Conditional Formatting created using Excel 2007 and Excel 2010. | Source

Using Check Boxes you can select or deselect a check box. They are very useful for lists or for Yes / No, On / Off lists. You can also use Conditional Formatting to change the text colour based on the result of the check box. I also have a hub for Check Boxes that can be found here.

http://robbiecwilson.hubpages.com/hub/Configuring-and-Using-Check-boxes-in-Excel-2007

Examples of Check boxes created using Excel 2007 and Excel 2010.
Examples of Check boxes created using Excel 2007 and Excel 2010. | Source

Both Combo boxes and Check Boxes are made more powerful and useful when they are used in conjunction with Conditional Formatting. Conditional Formatting allows you to change text or cells using rules so that as in the figures above when a task is completed the text for that task is turned green and when it is outstanding it is red or, it has a tick (or check) next to it when complete or a cross if it is incomplete. My hub on Conditional Formatting can be found here:

http://robbiecwilson.hubpages.com/hub/Conditional-Formatting-in-Excel-2007

Command Buttons are used to create a click able button in Excel that performs a specific function. In my example I created a reset button that resets the sheets combo boxes or check boxes to default using Visual Basic scripting. My hub on Command buttons can be found here:

http://robbiecwilson.hubpages.com/hub/Create-a-Command-Button-in-Excel-2007

Command Button with associated Visual Basic code created using Excel 2007 and Excel 2010.
Command Button with associated Visual Basic code created using Excel 2007 and Excel 2010. | Source

Many thanks for reading; I hope that you found it not only interesting but also informative and useful. Please feel free to leave a comment below.

Questions & Answers

    Comments

      0 of 8192 characters used
      Post Comment

      No comments yet.

      working

      This website uses cookies

      As a user in the EEA, your approval is needed on a few things. To provide a better website experience, turbofuture.com uses cookies (and other similar technologies) and may collect, process, and share personal data. Please choose which areas of our service you consent to our doing so.

      For more information on managing or withdrawing consents and how we handle data, visit our Privacy Policy at: https://turbofuture.com/privacy-policy#gdpr

      Show Details
      Necessary
      HubPages Device IDThis is used to identify particular browsers or devices when the access the service, and is used for security reasons.
      LoginThis is necessary to sign in to the HubPages Service.
      Google RecaptchaThis is used to prevent bots and spam. (Privacy Policy)
      AkismetThis is used to detect comment spam. (Privacy Policy)
      HubPages Google AnalyticsThis is used to provide data on traffic to our website, all personally identifyable data is anonymized. (Privacy Policy)
      HubPages Traffic PixelThis is used to collect data on traffic to articles and other pages on our site. Unless you are signed in to a HubPages account, all personally identifiable information is anonymized.
      Amazon Web ServicesThis is a cloud services platform that we used to host our service. (Privacy Policy)
      CloudflareThis is a cloud CDN service that we use to efficiently deliver files required for our service to operate such as javascript, cascading style sheets, images, and videos. (Privacy Policy)
      Google Hosted LibrariesJavascript software libraries such as jQuery are loaded at endpoints on the googleapis.com or gstatic.com domains, for performance and efficiency reasons. (Privacy Policy)
      Features
      Google Custom SearchThis is feature allows you to search the site. (Privacy Policy)
      Google MapsSome articles have Google Maps embedded in them. (Privacy Policy)
      Google ChartsThis is used to display charts and graphs on articles and the author center. (Privacy Policy)
      Google AdSense Host APIThis service allows you to sign up for or associate a Google AdSense account with HubPages, so that you can earn money from ads on your articles. No data is shared unless you engage with this feature. (Privacy Policy)
      Google YouTubeSome articles have YouTube videos embedded in them. (Privacy Policy)
      VimeoSome articles have Vimeo videos embedded in them. (Privacy Policy)
      PaypalThis is used for a registered author who enrolls in the HubPages Earnings program and requests to be paid via PayPal. No data is shared with Paypal unless you engage with this feature. (Privacy Policy)
      Facebook LoginYou can use this to streamline signing up for, or signing in to your Hubpages account. No data is shared with Facebook unless you engage with this feature. (Privacy Policy)
      MavenThis supports the Maven widget and search functionality. (Privacy Policy)
      Marketing
      Google AdSenseThis is an ad network. (Privacy Policy)
      Google DoubleClickGoogle provides ad serving technology and runs an ad network. (Privacy Policy)
      Index ExchangeThis is an ad network. (Privacy Policy)
      SovrnThis is an ad network. (Privacy Policy)
      Facebook AdsThis is an ad network. (Privacy Policy)
      Amazon Unified Ad MarketplaceThis is an ad network. (Privacy Policy)
      AppNexusThis is an ad network. (Privacy Policy)
      OpenxThis is an ad network. (Privacy Policy)
      Rubicon ProjectThis is an ad network. (Privacy Policy)
      TripleLiftThis is an ad network. (Privacy Policy)
      Say MediaWe partner with Say Media to deliver ad campaigns on our sites. (Privacy Policy)
      Remarketing PixelsWe may use remarketing pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to advertise the HubPages Service to people that have visited our sites.
      Conversion Tracking PixelsWe may use conversion tracking pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to identify when an advertisement has successfully resulted in the desired action, such as signing up for the HubPages Service or publishing an article on the HubPages Service.
      Statistics
      Author Google AnalyticsThis is used to provide traffic data and reports to the authors of articles on the HubPages Service. (Privacy Policy)
      ComscoreComScore is a media measurement and analytics company providing marketing data and analytics to enterprises, media and advertising agencies, and publishers. Non-consent will result in ComScore only processing obfuscated personal data. (Privacy Policy)
      Amazon Tracking PixelSome articles display amazon products as part of the Amazon Affiliate program, this pixel provides traffic statistics for those products (Privacy Policy)