Hi Shenly,
Penulisan nama sheetnya sudah benar?

Salam,
HK


________________________________
 From: Shenly Ruchman <shenly_excelma...@yahoo.co.id>
To: "belajar-excel@yahoogroups.com" <belajar-excel@yahoogroups.com> 
Sent: Thursday, 6 June 2013, 10:47
Subject: [belajar-excel] koreksi my VBA
 


  
Assalamualakimun Wr.WB

haloo para master, kembali sya bertanya, kemarin saya iseng2 membuat form 
inputan dengan scrip seperti ini



Private Sub cmdinput_Click()

    Dim tanggal, namauser, produk As Integer
    Dim jumlahdeposit, BarisTerakhir, BarisTujuan As Integer
    
    With Worksheets("attainment fist depo")
        tanggal = .Cells(3, 3).Value
        namauser = .Cells(4, 3).Value
        produk = .Cells(5, 3).Value
        jumlahdeposit = .Cells(6, 3).Value
        
        BarisTerakhir = .Cells(.Rows.Count, 1).End(xlUp).Row
        BarisTujuan = BarisTerakhir + 1
        .Cells(BarisTujuan, 1).Value = tanggal
        .Cells(BarisTujuan, 2).Value = namauser
        .Cells(BarisTujuan, 4).Value = produk
        .Cells(BarisTujuan, 6).Value = jumlahdeposit
    End With
         
End Sub





tapi ko malah error, tolong master-master berkenan memberi pencarahannya

terima kasih

Shenly ^^*
 

Kirim email ke