FROGGER24
Well-known Member
- Joined
- May 22, 2004
- Messages
- 704
- Office Version
- 2013
- 2010
- Platform
- Windows
When I run this piece of code I get a error message. "Runtime error 1004 unable to get the specialcellsproperty of the range class"
'runtime error 1004 "unable to get the specialcells property of the Range class
Range("I2:AF" & Cells(Rows.Count, "G").End(xlUp).Row).SpecialCells(xlCellTypeBlanks).FormulaR1C1 = "=R[1]C"
Range("I2:AF" & Cells(Rows.Count, "G").End(xlUp).Row).Copy
Range("I2:AF" & Cells(Rows.Count, "G").End(xlUp).Row).PasteSpecial xlPasteValuesAndNumberFormats
'runtime error 1004 "unable to get the specialcells property of the Range class
Range("I2:AF" & Cells(Rows.Count, "G").End(xlUp).Row).SpecialCells(xlCellTypeBlanks).FormulaR1C1 = "=R[1]C"
Range("I2:AF" & Cells(Rows.Count, "G").End(xlUp).Row).Copy
Range("I2:AF" & Cells(Rows.Count, "G").End(xlUp).Row).PasteSpecial xlPasteValuesAndNumberFormats