0% found this document useful (0 votes)
10 views1 page

Kode D'Dasproght

Uploaded by

Angga Santana
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views1 page

Kode D'Dasproght

Uploaded by

Angga Santana
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

Dim Jum_rec, x As Integer Public Sub Hitung() Jum_rec = 0 x = 0 Sheets("Sheet1").Select Range("A6").Select Do While Not IsEmpty(ActiveCell.

Offset(x, 0)) SendKeys "{down}", True Jum_rec = Jum_rec + 1 x = x + 1 Loop Range("H3").Select ActiveCell.Value = Jum_rec End Sub Public Sub Format_Data() Range("E:E").NumberFormat = """Rp.""* #,##0.000" Range("G:G").NumberFormat = """Rp.""* #,##0.000" End Sub Public Sub Input_Data() Range("A3").Select ActiveCell.End(xlDown).Select ActiveCell.Offset(1, 0).Select ActiveCell.Value = InputBox("Masukkan Kode Barang:", "Kode Barang", "1-AA-02 5") ActiveCell.Offset(0, 1).Select ActiveCell.Value = InputBox("Masukkan Nama Pembeli:", "Nama Pembeli", "Alida ") ActiveCell.Offset(0, 1).Select Call Rumus Tanya = MsgBox("Input Data Lagi?", vbYesNo, "Input Data") If Tanya = vbYes Then Input_Data Else Exit Sub End If End Sub Public Sub Rumus() ActiveCell.Formula = "=if(mid(RC[-2],3,2)=""AA"",""Celana"",if(mid(RC[-2],3, 2)=""BB"",""Kemja"",""TShirt""))" ActiveCell.Offset(0, 1).Select ActiveCell.Formula = "=if(left(RC[-3],1)=""1"",""Hammer"",if(left6(RC[-3],1) =""2"",""Hassenda"",""Lea""))" ActiveCell.Offset(0, 1).Select ActiveCell.Formula = "=if(mid(RC[-4],3,2)=""AA"",125000,if(mid(RC[-4],3,2)=" "BB"",65000,45000))" ActiveCell.Offset(0, 1).Select ActiveCell.Formula = "=Right(RC[-5],2)*1" ActiveCell.Offset(0, 1).Select ActiveCell.Formula = "=RC[-1]*RC[-2]" End Sub

You might also like