"run-time error '-2147417848 (80010108)" - Selection.Insert Shift:=xlDown - Please Help!

Mkotschy

New Member
Joined
Jan 27, 2020
Messages
3
Office Version
  1. 2013
Platform
  1. Windows
I have created a template for my work and the below Macro sometimes works, but sometimes crashes with the code "run-time error '-2147417848 (80010108)"

When I go to debug, the highlighted section is Selection.Insert Shift:=xlDown - I cannot see an issue with this to be honest so any help would be greatly appreciated

Sheets("Inserts").Select
Rows("2:9").Select
Selection.Copy
Sheets("Sainsburys Store").Select
Rows("2:9").Select
Selection.Insert Shift:=xlDown

These Macros are used across the spreadsheet, but for the life of me I cant work this out!

Thank You
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
How about ...

VBA Code:
  Worksheets("Inserts").Rows("2:9").Copy
  Worksheets("Sainsburys Store").Rows(2).Insert

If that fails, in the Immediate window, enter
VBA Code:
? Worksheets("Sainsburys Store").UsedRange.Address

... and see what is returned.
 
Upvote 0
I used this and received Run Time error '1004'

Insert Method of Range class failed

I then added the

Worksheets("Sainsburys Store").UsedRange.Address

Entry, and received

Run Time error '1004'

Insert Method of range class failed

Again
 
Upvote 0
What does
VBA Code:
? Worksheets("Sainsburys Store").UsedRange.Address
return in the Immediate window?
 
Upvote 0

Forum statistics

Threads
1,224,938
Messages
6,181,870
Members
453,068
Latest member
DCD1872

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top