Richard123
New Member
- Joined
- Feb 22, 2006
- Messages
- 26
I have created the following VBA using a macro function in Excel which runs fine. When copying it across to a button in the application I get the following error. Any ideas?
Sheets("foodhistory").Select
Rows("1:46").Select
Selection.insert Shift:=xlDown
Run time error 1004. Select method of Range class failed
Sheets("foodhistory").Select
Rows("1:46").Select
Selection.insert Shift:=xlDown
Run time error 1004. Select method of Range class failed