返回列表 上一主題 發帖

[發問] "執行階段錯誤 13型態不符合

回復 1# t8899
試試看
  1. Private Sub Worksheet_Calculate()
  2.     If (Range("P1").Value > Range("Q1").Value) And flag = True Then
  3.         CreateObject("Wscript.shell").Popup "OOOOO=>大筆成交  " & (Range("P1").Value)
  4.         Cells(1, 13).Interior.ColorIndex = 2
  5.         flag = False
  6.     End If
  7.    
  8.     If Not IsError(Range("Q6")) Then  '加上這
  9.         If (Range("Q6").Value > Range("R1").Value) And flag = True Then
  10.             CreateObject("Wscript.shell").Popup "xxxxxxx=>量能放大  " & (Range("Q1").Value)
  11.             Cells(1, 13).Interior.ColorIndex = 2
  12.             flag = False
  13.         End If
  14.     End If
  15. End Sub
複製代碼

TOP

        靜思自在 : 盡多少本份,就得多少本事。
返回列表 上一主題