Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I am using the code below to change the contents of a textbox depending on which cell is highlighted. the code works fine but does not work on a merged cell. any ideas? Private Sub Worksheet_SelectionChange(ByVal Target As Range) Select Case Target.Address(0,0) Case "C1" ActiveSheet.TextBox1.Value = "One" Case "D3", "F1", "M12" ActiveSheet.Textbox1.Value = "Two Case Else ActiveSheet.TextBox1.Value = "" end Select End Sub Thanks Nick |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
If activecell.column = variable then activecell,offset (0,1) | Excel Discussion (Misc queries) | |||
ActiveCell changes contents of TextBox | Excel Programming | |||
ActiveCell and TextBox | Excel Programming | |||
HELP! I Lost The Ability To Advance From TextBox To TextBox With the ENTER Or The TAB Keys | Excel Programming | |||
Textbox Bug? Missing/delayed update of textbox filled via VBA | Excel Programming |