Private Sub Workbook_SheetChange(ByVal Target As Range)
Target = Range("A1")
Applicion.Run AMP_100
Applicion.Run Pre_Qual
Applicion.Run GPU
Applicion.Run Class1
End Sub
_______________________________________________________________________________
Sub AMP_100()
Rows("1:1619").EntireRow.Hidden = False
End Sub
________________________________________________________________________________
Sub Pre_Qual()
Rows("1:1619").EntireRow.Hidden = False
Rows("7:1377").EntireRow.Hidden = True
Rows("1404:1619").EntireRow.Hidden = True
Select Case ComboBox1.Value
Case Is = 1
test1
Case Is = 2
test2
Case Is = 3
test3
End Select
End Sub
Sub test1()
Range("a1") = "a"
End Sub
Sub test2()
Range("a1") = "b"
End Sub
Sub test3()
Range("a1") = "c"
End Sub作者: 准提部林 時間: 2018-12-15 12:27
工作表區:
Private Sub ComboBox1_Change()
Application.Run ComboBox1.Text
End Sub
一般模組區:
Sub AMP_100()
Range("A1:A1619").EntireRow.Hidden = False
End Sub
Sub Pre_Qual()
Range("A1:A1619").EntireRow.Hidden = False
Range("A7:A1377,A1404:A1619").EntireRow.Hidden = True
End Sub
Sub GPU()
Range("A1:A1619").EntireRow.Hidden = True
Range("A7,A178,A216,A226,A228,A334,A378,A341,A487,A494,A531,A640,A647,A684,A793,A800," & _
"A837,A946,A953,A990,A1033,A1040,A1080,A1132,A1139").EntireRow.Hidden = False
End Sub
Sub Class1()
Range("A7:A1619").EntireRow.Hidden = True
Range("A7,A226,A1185,A1193,A1378,A1404,A1425,A1432,A1454,A1472,A1492," & _
"A1495,A1533,A1558").EntireRow.Hidden = False
End Sub作者: Ken721004 時間: 2018-12-16 11:23