Hi all:
I want to have macro that Call al ot of Sub/Functions with conditions: Left(ws.name,4) = "AAA0" and ws.range("A2").value <> 0
When conditions match will Call Sub Filter_ & ws.name
For example: if ws.name = "AAA012345" and sheets("AAA012345").range("A2") <>0 then Call Filter_AAA012345
I try with code belove but it don't work
Please help me./.
I want to have macro that Call al ot of Sub/Functions with conditions: Left(ws.name,4) = "AAA0" and ws.range("A2").value <> 0
When conditions match will Call Sub Filter_ & ws.name
For example: if ws.name = "AAA012345" and sheets("AAA012345").range("A2") <>0 then Call Filter_AAA012345
I try with code belove but it don't work
Code:
<code style="box-sizing: border-box; font-family: inherit; font-size: 1em;">Sub CallSub()
Dim ws As Worksheet
For Each ws In ThisWorkbook.Worksheets
If Left(ws.Name, 4) = "AAA0" And ws.Range("A2").Value <> "" Then
Call Filter_ & ws.Name
End If
Next c
End Sub</code>
Please help me./.