Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Before and after combo box change

I am not very good at VB at all, but in Access, with the
help of wizards, I seem to get around OK. My problem is in
Excel 2000. I have created a combo box that works just
fine. Now I need to have a macro run before the combo box
change, then run another macro after the combo box change.
As I said, in Access I can do this because of the various
events listed in the properties box. But in Excel, I don't
know where to start. I just assumed there would be
a "Before Update" option for the combo box. I can't even
find the code for the combo box itself. Please help.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 812
Default Before and after combo box change

It depends on which ComboBox. 1. From the Control Toolbox
toolbar and on a worksheet. 2. From the Forms toolbar and on
a worksheet. 3. From the Toolbox and on a UserForm.

Only #3 has a BeforeUpdate event procedure. For #1 access
the code by double-clicking the control in design mode (toolbox
open) or go to the VB Editor (menu Tool | Macro). For #2
right-click on the control with the toolbox open and click the little
Edit Code icon.

HTH,
Merjet


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting Combo boxes to change options based on other Combo boxes. Ancient Wolf New Users to Excel 1 March 27th 09 06:29 PM
Change of behavior in Combo Box Learning Excel Excel Discussion (Misc queries) 0 May 24th 08 05:00 PM
Combo box range change saman110 via OfficeKB.com Excel Discussion (Misc queries) 5 September 14th 07 10:10 AM
combo box on change code frendabrenda1 Excel Discussion (Misc queries) 0 April 10th 06 04:21 PM
Can I change the font size in a Combo Box ? tharrin20 Excel Worksheet Functions 0 January 16th 05 02:07 AM


All times are GMT +1. The time now is 04:41 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"