DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Option Explicit
Sub FORMÜLLERİ_KOPYALA()
Dim Satır_1 As Long, Satır_2 As Long, Satır_3 As Long, Son_Satır As Long
Satır_1 = Range("E[COLOR=red]1048576[/COLOR]").End(3).Row
Satır_2 = Range("F[COLOR=red]1048576[/COLOR]").End(3).Row
Satır_3 = Range("I[COLOR=red]1048576[/COLOR]").End(3).Row
Son_Satır = WorksheetFunction.Max(Satır_1, Satır_2, Satır_3)
If Son_Satır > 4 Then
Range("C4:D4").AutoFill Destination:=Range("C4:D" & Son_Satır), Type:=xlFillDefault
Range("G4:H4").AutoFill Destination:=Range("G4:H" & Son_Satır), Type:=xlFillDefault
Range("J4").AutoFill Destination:=Range("J4:J" & Son_Satır), Type:=xlFillDefault
End If
MsgBox "İşleminiz tamamlanmıştır.", vbInformation
End Sub
Sub SadeceFormulleriKopyala()
a = Split(ActiveSheet.UsedRange.Address, "$")(4)
For Each hcr In Range("c4:j" & a)
If hcr.HasFormula Then
hcr.Copy
Range(Cells(5, hcr.Column), Cells(a, hcr.Column)).PasteSpecial (xlPasteFormulas)
End If
Next
Application.CutCopyMode = False
End Sub
bu kod bazen hata veriyor aşağıdaki kotda hiç hata görmedim.ActiveSheet.UsedRange.Address
sonsatır = Cells.Find(What:="*", After:=[A1], SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row
Sub tablo_formül()
başsatır = 5
sonsatır = Split(ActiveSheet.UsedRange.Address, "$")(4)
For Each hcr In ActiveSheet.Range(başsatır & ":" & başsatır)
If hcr.HasFormula Then
hcr.Copy
i = hcr.Column
Range(ActiveSheet.cells(başsatır + 1, i), ActiveSheet.cells(sonsatır, i)).Select
Selection.PasteSpecial (xlPasteAll)
End If
Next
Application.CutCopyMode = False
End Sub