Macro Example to Return Item from Worksheet Control (138823)
The information in this article applies to:
- Microsoft Excel 97 for Windows
- Microsoft Excel for Windows 95
- Microsoft Excel for Windows 5.0
- Microsoft Excel 98 Macintosh Edition
This article was previously published under Q138823 SUMMARY
In Microsoft Excel, you can place a control, such as a list box or a drop-
down box, on a worksheet. You can also attach macros to these controls so
that the macro runs when an item is selected from that control.
This article contains a sample Microsoft Visual Basic for Applications
macro (Sub procedure) that takes the item that is chosen from a drop-down
list on a worksheet and places that item in the active cell of the
worksheet.
REFERENCES
For more information about adding controls to a worksheet, click the
Index tab in Microsoft Excel 7.0/97 Help, type the following text
and then double-click the selected text to go to the "Adding controls to a
sheet" topic.
"Visual Basic User's Guide," version 5.0, Chapter 11, "Controls and Dialog
Boxes"
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbdtacode kbhowto kbProgramming KB138823 |
---|
|