Merge Cells VBA Run Time Error 1004

charliecharlie24

New Member
Joined
Sep 4, 2018
Messages
1
Hi there,

I have a colleague who we have moved to Office 2016 from 2010 and now a macro enabled spreadsheet is not working as it once was.

He gets an error in VBA when running a macro - the error is a Run Time 1004 and states about an issue with merged cells.

I've done lots of reading and have read that merged cells should be avoided but unfortunately, that would take a hell of a lot of work to get the layout to look the same and would require changes on so many spreadsheets.

As a test, I got the user to unmerge all cells and it did indeed work but is there not something in the code that could be changed/tweaked to prevent it happening?

I can obviously provide a copy of the code if it helps troubleshoot.

Thanks in advance,
Charlie
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Hi Charlie and Welcome To The Board :)

Please provide the code you are having trouble with. You will likely get some answers that may assist you.

Bye 4 Now,
Mrk
 
Upvote 0

Forum statistics

Threads
1,216,175
Messages
6,129,299
Members
449,499
Latest member
HockeyBoi

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