Dear pakar,
Tambahan info, untuk Macro lainnya bisa berjalan dengan normal.
Berikut ini record macronya, tapi maaf file nya tidak saya sertakan berhubung
file nya confidential
Sub SLIP_1()
' SLIP_1 Macro
' Select 1 lembar slip
'
Range("H3").Select
Range("C3:H39").Select
Range("H3").Activate
End Sub
Sub SLIP_2()
' SLIP_2 Macro
' Select 2 Slip Gaji
'
Range("O3").Select
Range("C3:O39").Select
Range("O3").Activate
End Sub
Sub SLIP_4()
' SLIP_4 Macro
' Select 4 Slip Gaji
'
Range("O3").Select
Range("C3:O78").Select
Range("O3").Activate
End Sub
Sub SLIP_3()
' SLIP_3 Macro
' Macro recorded 06/09/2011 by hrd
'
ActiveSheet.Shapes("Picture 3").Select
With Selection
.Placement = xlMoveAndSize
.PrintObject = False
End With
Range("O42").Select
Range("J42:O78").Select
Range("O42").Activate
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
Selection.Borders(xlEdgeLeft).LineStyle = xlNone
Selection.Borders(xlEdgeTop).LineStyle = xlNone
Selection.Borders(xlEdgeBottom).LineStyle = xlNone
Selection.Borders(xlEdgeRight).LineStyle = xlNone
Selection.Borders(xlInsideVertical).LineStyle = xlNone
Selection.Borders(xlInsideHorizontal).LineStyle = xlNone
Selection.Font.ColorIndex = 2
Range("O3").Select
Range("C3:O78").Select
Range("O3").Activate
End Sub
Sub Kembalikan()
' Kembalikan Macro
' Macro recorded 06/09/2011 by hrd
'
Range("H42").Select
Range("C42:H78").Select
Range("H42").Activate
Selection.Copy
Range("O42").Select
Range("J42:O78").Select
Range("O42").Activate
Selection.PasteSpecial Paste:=xlPasteFormats, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
ActiveSheet.Shapes("Picture 3").Select
Application.CutCopyMode = False
With Selection
.Placement = xlMoveAndSize
.PrintObject = True
End With
Range("Q6").Select
End Sub
Sub PRINT_SLIP()
' PRINT_SLIP Macro
' Untuk nge print Slip yang di pilih
'
Selection.PrintOut Copies:=1, Collate:=True
End Sub
Sub SLIP_DW_1()
' SLIP_DW_1 Macro
' Macro recorded 06/09/2011 by hrd
'
Range("J5").Select
Range("B5:J66").Select
Range("J5").Activate
End Sub
Sub SLIP_DW_2()
' SLIP_DW_2 Macro
' Macro recorded 06/09/2011 by hrd
'
Range("B5").Select
ActiveWindow.SmallScroll Down:=34
Range("B5:T66").Select
End Sub
Sub SLIP_DW_3()
' SLIP_DW_3 Macro
' Macro recorded 06/09/2011 by hrd
'
Range("B5").Select
Range("B5:AD66").Select
End Sub
Sub PRINT_PILIHAN_DW()
' PRINT_PILIHAN_DW Macro
' Macro recorded 06/09/2011 by hrd
'
Selection.PrintOut Copies:=1, Collate:=True
ActiveSheet.Shapes("Button 209").Select
Selection.OnAction = "PRINT_PILIHAN_DW"
End Sub
Sub PRINT_DW_SEMUA()
' PRINT_DW_SEMUA Macro
' Macro recorded 06/09/2011 by hrd
'
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
End Sub
Terima kasih
JRE
________________________________
Dari: JR.Edi <[email protected]>
Dikirim: Rabu, 14 Desember 2011 15:05
Dear Pakar Excel,
Saya mempunyai problem macro yang ngadat, dengan pesan (setelah di croping)
seperti di bawah. Jika di OK, maka macro nya tidak jalan, dan icon Design Mode
pada Control menyala.
Pada awalnya macro saya buat di V 2003 bisa jalan dengan baik, setelah itu saya
rubah ke 2007 dengan type file *.xlm, dan disitulah mulai ngadat. Macro
security sudah di Enable. Sudah saya uthak-athik, tetap saja saya tidak
berkutik...he..he..
Mohon pencerahannya kira-kira kenapa ya?
terima kasih
JRE