Hi all
office 365
I have an Excel problem with many files. Run-time error 1004 had this for a week now I can't solve the problem and hope to find an answer here.
Sub Macro1()
'
' Macro1 Macro
Sheets("Sheet1").Select
Application.Goto Reference:="R1C1"
ActiveCell.FormulaR1C1 = "1"
ActiveCell.Offset(1, 0).Range("A1").Select
ActiveCell.FormulaR1C1 = "2"
ActiveCell.Offset(1, 0).Range("A1").Select
ActiveCell.FormulaR1C1 = "3"
ActiveCell.Offset(1, 0).Range("A1").Select
Application.Goto Reference:="R1C1"
ActiveCell.Rows("1:3").EntireRow.Select
Selection.Delete Shift:=xlUp stops here.... Run-time error 1004 Delete method of range class failed
End Sub
The 1. 2. 3, are removed then I get the error.
any help appreciated
Graham
office 365
I have an Excel problem with many files. Run-time error 1004 had this for a week now I can't solve the problem and hope to find an answer here.
Sub Macro1()
'
' Macro1 Macro
Sheets("Sheet1").Select
Application.Goto Reference:="R1C1"
ActiveCell.FormulaR1C1 = "1"
ActiveCell.Offset(1, 0).Range("A1").Select
ActiveCell.FormulaR1C1 = "2"
ActiveCell.Offset(1, 0).Range("A1").Select
ActiveCell.FormulaR1C1 = "3"
ActiveCell.Offset(1, 0).Range("A1").Select
Application.Goto Reference:="R1C1"
ActiveCell.Rows("1:3").EntireRow.Select
Selection.Delete Shift:=xlUp stops here.... Run-time error 1004 Delete method of range class failed
End Sub
The 1. 2. 3, are removed then I get the error.
any help appreciated
Graham