F
Florence
Dear all,
I want to insert rows in an existing Excel file after the 10th row with
contents pre-defined driven by Access module:
Dim objSht As Excel.Worksheet
…
With objSht
..Rows("10:10").Select
..Rows.Insert (xlShiftDown)
End With
Then the Access will return an error like this:
“Run-time error ‘1004’
To prevent possible loss of data, Mocrosoft Office Excel cannot shift
nonblank cells off the worksheet …â€
However, I am able to insert rows manually inside the Excel.
Do you have any idea if I can ignore this error?
Much thanks!
I want to insert rows in an existing Excel file after the 10th row with
contents pre-defined driven by Access module:
Dim objSht As Excel.Worksheet
…
With objSht
..Rows("10:10").Select
..Rows.Insert (xlShiftDown)
End With
Then the Access will return an error like this:
“Run-time error ‘1004’
To prevent possible loss of data, Mocrosoft Office Excel cannot shift
nonblank cells off the worksheet …â€
However, I am able to insert rows manually inside the Excel.
Do you have any idea if I can ignore this error?
Much thanks!