With Workbooks.Open(Path & File)
Set W = Workbooks.Open(Path & File)
With W.Sheets(i)
W.Sheets(i).Activate
xRow = Cells(Cells.Rows.Count, "B").End(xlUp).Row
Set Rng = Range("S5:S" & xRow)
End With
Workbooks("最新庫存-佳品.xlsx").Sheets("佳品").Activate
Set xRng = Range("AM6:AM" & xRow)
xRng = Rng.Values作者: jcchiang 時間: 2020-3-3 08:03
請問 程式Sub 出貨(),是在其他程式中呼叫,但只需在每週一、四執行,不是這個時間,則不用呼叫Module211.出貨,我試著寫成以下,但一直無法執行!
If Weekday(Day, 2) Or Weekday(Day, 5) Then
Call Module211.出貨
Else
Exit For ' 中斷
End If作者: 准提部林 時間: 2020-3-22 10:07