Tecnologia, programação e muito Visual FoxPro.

terça-feira, 19 de julho de 2011

Re: ]] XL-mania [[ Cetak Form

perbaikan makro, sedikitts ..
(dong yg dikirim kemarin belum diberi command: langsung cetak)

makro klik cetak SJ.GIF


On Tue, Jul 19, 2011 at 9:32 PM, STDEV(i) <setiyowati.devi@gmail.com> wrote:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
   ' siti Vi // 19 Juli 2011 // XL-mania msg#18855
   '----------------------------------------------
   Dim Daftar As Range, Bantu As Range, SJ As String
   Dim r As Long, i As Long
   Set Daftar = Range("B4").CurrentRegion
   Set Bantu = Daftar.Offset(0, Daftar.Columns.Count - 1).Resize(, 1)
   If Target.Count = 1 Then
      If Target.Column = 3 And Target.Row > 4 Then
         r = 1: SJ = Target.Value
         With Sheets("Form Surat Jalan")
            .Range("C12").CurrentRegion.Offset(1, 0).ClearContents
            .Range("E6") = Target(1, 0)
            .Range("E7") = Target(1, 2)
            .Range("D10") = Target(1, 1)
            Do
               .Range("C13").Cells(r, 1) = Target(r, 3)
               .Range("C13").Cells(r, 2) = Target(r, 4)
               r = r + 1
            Loop While Target(r, 5) = SJ
            .Activate
         End With
      End If
   End If
End Sub




2011/7/19 Endut Karim <endutkarim@yahoo.co.id>
>
> Dear XL-Mania's,
> Mohon bantuan
> Saya punya Daftar Surat Jalan dan Form Surat Jalan, 
> yang diinginkan apabila No. Surat Jalan pada Daftar Surat Jalan diKlik 
> maka Form Jalan akan tercetak di layar maupun ke printer.
> Terlampir Daftar Surat Jalan dan Formnya
> Thnaks bantuannya
> Regard
> Effendy Karim


Nenhum comentário:

Arquivo do blog