'=======Cetak_Raport_MAM1=========
Sub cetak_banyak()
Dim mulai As Byte
Dim sampai As Byte
Dim a As Byte
mulai = Range("U3").Value
sampai = Range("V3").Value
For a = mulai To sampai
Range("M1") = a
Sheet44.PrintOut from:=1, To:=3, Copies:=1
Next a
Sheet44.Select
End Sub
Selasa, 20 Desember 2022
Print Raport MAM 1
Sabtu, 17 Desember 2022
Goal Sek - Analisa
Sub goalsek()
'
' goalsek Macro
'
Selection.GoalSeek Goal:=842, ChangingCell:=Selection.Offset(0, -1)
End Sub
Selasa, 13 Desember 2022
Bris Terakhir
Menuju Baris terakhir :
Worksheets("Sheet1").Cells(Rows.Count, 1).End(xlUp).Value
nilainya berupa value dari cell tersebut
===========================
irow = Sheet1.Cells(Rows.Count, 1).End (xlUp).Offset(1, 0).row
nilainya berupa nomor baris
Sabtu, 27 Agustus 2022
Rabu, 08 Desember 2021
Pengaturan Cetak Dafnil, Dafdir, dan Raport
With Sheet1.PageSetup .PaperSize = xlPaperLegal .BottomMargin = Application.CentimetersToPoints(3) End With
Jumat, 03 Desember 2021
Backup File
Private Sub Workbook_AfterSave(ByVal Success As Boolean)
Dim saveDate As Date
Dim saveTime As Variant
Dim formatTime As String
Dim formatDate As String
Dim backupFolder As String
saveDate = Date
saveTime = Time
formatTime = Format(saveTime, "hh.MM.ss")
formatDate = Format(saveDate, "DD MMM YYYY")
Application.DisplayAlerts = False
backupFolder = ThisWorkbook.Path & "\"
ActiveWorkbook.SaveCopyAs Filename:=backupFolder & Replace("Backup-" & ActiveWorkbook.Name, ".xlsb", "") & " " & formatDate & " " & formatTime & ".xlsb"
Application.DisplayAlerts = True
' MsgBox "Backup Successfully In The Path " & backupFolder
End Sub
Langganan:
Postingan (Atom)
Menghitung USIA Excel
=BYROW(D2:D100; LAMBDA(tanggal_lahir; IF(tanggal_lahir=""; ""; DATEDIF(tanggal_lahir; TODAY(); "y"...
-
klik di sni
-
Option Explicit Sub cetaktabungansetoran() Dim rujukan As Range Dim b As Long Set rujukan = Sheets("CETAKTABUNGAN").Range(...
-
Option Explicit Private Sub CDMDDELETE_Click() Application.ScreenUpdating = False Me.TABELDATA.value = "" If Me.TXTNISN.valu...