![]() |
Runtime error '424': Object Required
I keep getting the error in the subject line. Can someone please help.
Thank you. Sub CopyFixedAssetsformulas() Dim startRange As Range Dim rglast As Variant Dim lastrange As Variant Set startRange = Sheet20.Range("A5") Set rglast = Sheet20.Range("A5").SpecialCells(xlCellTypeLastCel l) Set lastrange = Sheet20.Range("A5", "A" & rglast.Row).Find("Summary", LookIn:=xlValues) Sheet20.Range("K5", "V5").Copy Sheet20.Range("K6", "V" & lastrange.Row - 2).PasteSpecial (xlPasteFormulasAndNumberFormats) Application.CutCopyMode = False Sheet20.Range("A5").Select End Sub |
Runtime error '424': Object Required
You have other replies at your other posts.
"loren.pottinger" wrote: I keep getting the error in the subject line. Can someone please help. Thank you. Sub CopyFixedAssetsformulas() Dim startRange As Range Dim rglast As Variant Dim lastrange As Variant Set startRange = Sheet20.Range("A5") Set rglast = Sheet20.Range("A5").SpecialCells(xlCellTypeLastCel l) Set lastrange = Sheet20.Range("A5", "A" & rglast.Row).Find("Summary", LookIn:=xlValues) Sheet20.Range("K5", "V5").Copy Sheet20.Range("K6", "V" & lastrange.Row - 2).PasteSpecial (xlPasteFormulasAndNumberFormats) Application.CutCopyMode = False Sheet20.Range("A5").Select End Sub -- Dave Peterson |
All times are GMT +1. The time now is 03:01 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com