- 帖子
- 6
- 主題
- 3
- 精華
- 0
- 積分
- 50
- 點名
- 0
- 作業系統
- winows10
- 軟體版本
- office2013
- 閱讀權限
- 20
- 性別
- 男
- 來自
- Taipei
- 註冊時間
- 2011-1-23
- 最後登錄
- 2019-5-10
|
若想用VBA 的IF句法,來判斷每季財報自動更新,該如何寫?
If .Cells(r, "EN") = "" Or (Date >= DateSerial(Year(Date), 3, 31) And Date < DateSerial(Year(Date), 4, 1)) Or (Date >= DateSerial(Year(Date), 5, 14) And Date < DateSerial(Year(Date), 5, 16)) Or (Date >= DateSerial(Year(Date), 8, 14) And Date < DateSerial(Year(Date), 8, 16)) Or (Date >= DateSerial(Year(Date), 11, 14) And Date < DateSerial(Year(Date), 11, 16)) Then Exit Sub
出現程式物件定義錯誤,請前輩高手指正! |
|