JKP Application Development Services.

                    Microsoft Office Application Development

Control Events

Up • Defined Names • Corrupt Files • Create Addins • Startup Problems • Chart an Equation • Show Picture • Round2Digits • Control Events • Custom Find • FormulaWrapper • Disable Events • Workbook Open Bug • WebQuery • Register UDFs • Undo With Excel VBA • Select a range (VBA) • Transpose Table • Docking VBE Windows • Excel 2007 Tables • Excel 2007 Tables (VBA) • Update An Addin • Addin Installation • Object Lister • Excel 2007 FileFormat • Catch Paste • Listbox AutoSize • Fix Links to UDFs

• Preparations • Class Module • Hooking up • Conclusion •

Search Zoeken

WWW
This site

Go to Ga Naar
Home
Up
Preparations
Class Module
Hooking up
Conclusion

Donate Donaties
Did you find something helpful on my site? Consider a donation!
Heeft u iets gevonden waar u wat aan had? Overweeg dan een donatie!

 

Handling Worksheet Control Events Using a Class Module

Introduction

When utilising controls from the Control Toolbox on worksheets, often one needs to use event code to handle the actions a user takes with them. If however a large number of controls is used, this may become unwieldy because one has to add an event sub for each one of them. This article gives an example how one can use a class module with a single event subroutine for a set of (identical) controls.

Table Of Contents

  1. Setting up the sample worksheet
  2. Creating the Class module
  3. Hooking up the controls to the class module
  4. Conclusion

Introduction 1 2 3 Conclusion

 

    Subscribe in a readerpowered by longhead.com

Use the contact page to issue questions or comments about this website.
Copyright © 2003-2008 JKP Application Development Services