|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Run time error 1004
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 |
|
#2
|
|||
|
|||
|
Quote:
Our there any blank fields that need to be filled or the wrong type e.g. a number when it should be a letter? have you tried just running only the first row to see which row it actually errrors on. |
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > Run time error 1004 |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|