Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
ok, this works fine if i have a single cell colored, but not if i have a few
merged cells or if i select more than one cell at a time. I get a Runtime error type 13, "Type mismatch" at the Selection.Value part. Does anyone know why im getting this. I know merged cells may be a problem, but i get the same error when i select multiple cells. here is my code. Thanks Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Range) If Target.Interior.ColorIndex = 36 Then If Selection.Value = "" Then 'IF BLANK YELLOW CELL CLICKED UserForm1.Show ElseIf Selection.Value < "" Then 'IF < "" YELLOW CELL CLICKED UserForm1.Show End If End If End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Reposted question: If cell is empty show userform???????? | Excel Discussion (Misc queries) | |||
userform.show question? | Excel Programming | |||
userform.show question? | Excel Programming | |||
right click menu, userform show | Excel Programming | |||
Cell right next to colored cells is automatically colored on entering a value | Excel Programming |