Sub Macro1()
For i = 1 To 5
Cells(1, 1).NumberFormatLocal = "@"
Cells(1, 1) = i & "/5"
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
Next i
End Sub作者: simon.chenpro 時間: 2010-10-13 12:36
我是小學生,會的東西不多,只能土法煉鋼。
Sub Macro1()
For i = 1 To 5 '要印500次就設1 to 500
Cells(1, 1).NumberFormatLocal = "@" '用錄製學來的,設定A1為文字格式
Cells(1, 1) = i & "/5" 'A1內容為i/5,i是1時,就顯示1/5,i是2時,就顯示2/5
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True '用錄製學來的,設定列印動作
Next i
End Sub作者: simon.chenpro 時間: 2010-10-18 22:59
For rwIndex = 1 to 4
For colIndex = 1 to 10
With Worksheets("Sheet1").Cells(rwIndex, colIndex)
If .Value < .001 Then .Value = 0
End With
Next colIndex
Next rwIndex
ps. cells(4,10)就是J4儲存格。作者: simon.chenpro 時間: 2010-10-21 18:05