- Katılım
- 5 Eylül 2007
- Mesajlar
- 1,247
- Excel Vers. ve Dili
- ofis 2010
Sub liste_ad_sil()
'
' liste_ad_sil Makro
'
Range("A2:C1210").Select
Selection.ClearContents
Range("M2").Select
End Sub
Sub aktar_urun_59()
Dim sonsat As Long, sh As Worksheet
Sheets("URUN_LISTE").Select
Range("A2:C" & Rows.Count).ClearContents
Set sh = Sheets("sabitler")
sonsat = sh.Cells(Rows.Count, "B").End(xlUp).Row
Application.ScreenUpdating = False
sh.Range("B2
" & sonsat).Copy Range("A2")
Application.ScreenUpdating = True
End Sub
Sub sil()
'
' sil Makro
Range("D2:E1000").Select
Selection.ClearContents
Range("D2").Select
End Sub
Sub aktarr()
Application.ScreenUpdating = False
On Error Resume Next
Set s1 = ThisWorkbook.Worksheets("HAREKET")
Set s2 = ThisWorkbook.Worksheets("URUN_LISTE")
For i = 2 To s2.Range("A65536").End(xlUp).Row
s1.Cells(1, 1) = s2.Cells(i, 1)
s2.Cells(i, 4) = s1.Cells(1, "P")
s2.Cells(i, 5) = s1.Cells(1, "Q")
Next i
Application.ScreenUpdating = True
MsgBox "İşlem TAMAM.", vbInformation
End Sub
Sub urun_listF()
On Error Resume Next
Application.EnableEvents = False
son_satir = Range("A65530").End(3).Row
Range("F2").AutoFill Destination:=Range("F2:F" & son_satir) 'formülleri bir alt satıra kopyalama
Range("G2").AutoFill Destination:=Range("G2:G" & son_satir)
Range("H2").AutoFill Destination:=Range("H2:H" & son_satir)
Range("I2").AutoFill Destination:=Range("I2:I" & son_satir)
Range("J2").AutoFill Destination:=Range("J2:J" & son_satir)
Application.EnableEvents = True
End Sub
yazdığım sırada teker teker butonlarla makroları çalıştırıyorum. tek butonla beş makroyu sırayla çalıştırmanın bir kolayını arıyorum.
Teşekkürler
'
' liste_ad_sil Makro
'
Range("A2:C1210").Select
Selection.ClearContents
Range("M2").Select
End Sub
Sub aktar_urun_59()
Dim sonsat As Long, sh As Worksheet
Sheets("URUN_LISTE").Select
Range("A2:C" & Rows.Count).ClearContents
Set sh = Sheets("sabitler")
sonsat = sh.Cells(Rows.Count, "B").End(xlUp).Row
Application.ScreenUpdating = False
sh.Range("B2
Application.ScreenUpdating = True
End Sub
Sub sil()
'
' sil Makro
Range("D2:E1000").Select
Selection.ClearContents
Range("D2").Select
End Sub
Sub aktarr()
Application.ScreenUpdating = False
On Error Resume Next
Set s1 = ThisWorkbook.Worksheets("HAREKET")
Set s2 = ThisWorkbook.Worksheets("URUN_LISTE")
For i = 2 To s2.Range("A65536").End(xlUp).Row
s1.Cells(1, 1) = s2.Cells(i, 1)
s2.Cells(i, 4) = s1.Cells(1, "P")
s2.Cells(i, 5) = s1.Cells(1, "Q")
Next i
Application.ScreenUpdating = True
MsgBox "İşlem TAMAM.", vbInformation
End Sub
Sub urun_listF()
On Error Resume Next
Application.EnableEvents = False
son_satir = Range("A65530").End(3).Row
Range("F2").AutoFill Destination:=Range("F2:F" & son_satir) 'formülleri bir alt satıra kopyalama
Range("G2").AutoFill Destination:=Range("G2:G" & son_satir)
Range("H2").AutoFill Destination:=Range("H2:H" & son_satir)
Range("I2").AutoFill Destination:=Range("I2:I" & son_satir)
Range("J2").AutoFill Destination:=Range("J2:J" & son_satir)
Application.EnableEvents = True
End Sub
yazdığım sırada teker teker butonlarla makroları çalıştırıyorum. tek butonla beş makroyu sırayla çalıştırmanın bir kolayını arıyorum.
Teşekkürler
