How to determine whether a selected cell in an Excel worksheet is in a specified defined range by using a Visual Basic macro (259137)
The information in this article applies to:
- Microsoft Office Excel 2003
- Microsoft Excel 2002
- Microsoft Excel 2000
- Microsoft Excel 97 for Windows
- Microsoft Excel 2004 for Mac
- Microsoft Excel X for Mac
- Microsoft Excel 2001 for Mac
- Microsoft Excel 98 Macintosh Edition
This article was previously published under Q259137 SUMMARY
You can use Microsoft Visual Basic for Applications to determine whether the cell that you just selected is in a specified range.
REFERENCESFor more information about naming cell ranges, click Microsoft Excel Help on the Help menu, type name cells in a workbook in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
For more information about the Intersect method, click Microsoft Visual Basic Help on the
Help menu, type intersect method example in the Office Assistant or
the Answer Wizard, and then click Search to view the topics
returned.
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbdtacode kbhowto kbinfo KB259137 |
---|
|