Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
i need some script that will make a text box appear when A1 is selected then
dissappear when it is deselected. the default status of the text box needs to be hidden. is this possible and if so how? many thanks chris |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Chris,
Assuming you are using the text box from the Controls command bar, put the following code in the worksheet code module for the sheet than contains the text box. Private Sub Worksheet_SelectionChange(ByVal Target As Range) Me.TextBox1.Visible = _ Not (Application.Intersect(Range("A1"), Target) Is Nothing) End Sub -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting www.cpearson.com (email on the web site) "Christopher Buxton" wrote in message ... i need some script that will make a text box appear when A1 is selected then dissappear when it is deselected. the default status of the text box needs to be hidden. is this possible and if so how? many thanks chris |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Show zero value but hide NA | Charts and Charting in Excel | |||
Show/Hide | Excel Discussion (Misc queries) | |||
show hide row if | Excel Discussion (Misc queries) | |||
Show or hide rows when text is bold or italic | Excel Programming | |||
Hide and show | Excel Programming |