返回列表 上一主題 發帖

簡化程式碼

簡化程式碼

請教各位,下列程式碼該如何簡化?謝謝!
If [B80] = 1 Then
    Application.Run ("InsertOrder")
End If
If [B80] = 2 Then
    Application.Run ("InsertOrder")
End If
If [B80] = 3 Then
    Application.Run ("InsertOrder")
End If
If [B80] = 4 Then
    Application.Run ("InsertOrder")
End If
If [B80] = 5 Then
    Application.Run ("InsertOrder")
End If
If [B80] = 6 Then
    Application.Run ("InsertOrder")
End If
If [B80] = 7 Then
    Application.Run ("InsertOrder")
End If
If [B80] = 8 Then
    Application.Run ("InsertOrder")
End If

If [B80] >= 1 And [B80] <= 8 Then
    Application.Run ("InsertOrder")
End If
學海無涯_不恥下問

TOP

        靜思自在 : 【是否發揮了良能?】人間壽命因為短暫,才更顯得珍貴。難得來一趟人間,應問是否為人間發揮了自己的良能,而不要一味求長壽。
返回列表 上一主題