PTS Blog

Main menu:

Excel Books

Books that I own and use while developing in Excel

Goods and Services

Excel or charting related products and services which I use or feel are worthwhile additions

Excel User Conference

2008 US East Coast Excel User Conference
September 24-26, 2008
Atlantic City, NJ

Subscribe

Site search


Recent Posts

Recently Commented

March 2008
S M T W T F S
« Feb   Apr »
 1
2345678
9101112131415
16171819202122
23242526272829
3031  

Archive


 

Categories


 

Archive for Thursday, March 13th, 2008

How To: Assign a Macro to an ActiveX Control

by Jon Peltier
Peltier Technical Services, Inc., Copyright © 2008. All rights reserved.

In the latest post, I showed how to assign a macro to a Forms menu control or other shape on a sheet. Macros can also be run from the ActiveX controls on the Control Toolbox.
We'll use this simple macro for this example.
PLAIN TEXT
Visual Basic:

Sub HelloWorld()

    MsgBox "Hello, World! ", vbExclamation

End Sub

When it is run, [...]

Create Excel dashboards quickly with Plug-N-Play reports.