Terima kasih pak Hendrik It's work..
Wassalam Bagus 2015-03-25 15:17 GMT+07:00 hendrik karnadi [email protected] [belajar-excel] <[email protected]>: > > > Mas Bagus, > Ini adalah warisan mbak Siti Vi, yang saya modifikasi sedikit. > Macronya seperti ini: > Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As > Boolean) > *'siti v, edited by hk* > Dim Rng As Range, r As Long > Set Rng = Cells(1).CurrentRegion > For r = Rng.Rows.Count + 1 To 2 Step -1 > If Rng(r - 1, 1).Value = 1 Then > Rng(r - 1, 1).EntireRow.Insert Shift:=xlDown > End If > Next r > Rows("2:2").EntireRow.Delete > Cancel = True > End Sub > di copas ke VBE (sheet1(data)) > > Salam, > HK > > ------------------------------ > *From:* "Bagus [email protected] [belajar-excel]" < > [email protected]> > *To:* "[email protected]" <[email protected]> > *Sent:* Wednesday, 25 March 2015, 14:23 > *Subject:* [belajar-excel] Insert row [1 Attachment] > > > Assalamu'alaykum.. > > Minta tolong kepada be-exceller untuk kasus terlampir. > > bagaimana ketika ketemu nomor satu yang kedua dan seterusnya maka akan > insert row. > > Matur nuwun; > > > Wassalam > Bagus > > > >

