Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
a,
The line... If Len(Range("A1") + Len(Range("A2") + Len(Range("A3") = 0 should read... If Len(Range("A1")) + Len(Range("A2")) + Len(Range("A3")) = 0 Then I omitted the required ")" in my original post. Note: Colored text does not always show up, best to not use it. Regards, Jim Cone San Francisco, USA "anar_baku" wrote in message Thanks a lot Jim, the code seems OK but I'm getting a syntax error for some reason I've copy-pasted the whole code below, any idea what I'm doing wrong? Text in Blue - my original Macro Text in Red - the code you suggested I add Sub Macro5() If Len(Range("A1") + Len(Range("A2") + Len(Range("A3") = 0 Then MsgBox "An entry is required on the worksheet. " Exit Sub End If Range("List").AdvancedFilter Action:=xlFilterInPlace, CriteriaRange:=Range( _ "Criteria"), Unique:=False ActiveSheet.Shapes("Button").Select Selection.Characters.Text = "Show All" ActiveSheet.Shapes("Button").OnAction = "Macro6" Range("A7").Select End Sub Sub Macro6() ActiveSheet.ShowAllData ActiveSheet.Shapes("Button").Select Selection.Characters.Text = "Search" ActiveSheet.Shapes("Button").OnAction = "Macro5" Range("A7").Select End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
error alert for invalid date | Excel Worksheet Functions | |||
Data Validation - Error Alert | New Users to Excel | |||
Error Alert for Invalid Data doesn't work for data selected in col | Excel Worksheet Functions | |||
Creating Error Alert From Logical Function | Excel Discussion (Misc queries) | |||
data validation error alert does not work | Excel Discussion (Misc queries) |