a = ComboBox1.Value
CommandButton3.Enabled =
False
Select
Case
a = ComboBox1.Value
Case
a =
"Alle Organisationen"
Columns(
"A:MI"
).Hidden =
False
Rows(
"1:100"
).Hidden =
False
Range(
"C1"
).Value = Null
Range(
"C2"
).Value = Null
Case
a <>
"Alle Organisationen"
Set
rngN = Range(
"C2:MZ2"
).Find(a, LookIn:=xlValues, MatchCase:=
True
)
With
rngN.MergeArea
w = .Cells(1).Row
x = .Cells(1).Column
y = .Cells(.Cells.Count).Row
z = .Cells(.Cells.Count).Column
Range(
"C1"
).Value = x
Range(
"C2"
).Value = z
End
With
Columns(
"D:MI"
).Hidden =
True
Range(Columns(x), Columns(z)).Hidden =
False
ComboBox1.Enabled =
False
CommandButton3.Enabled =
True
End
Select
End
Sub