Excel offset with merged cells.

will_maunders

New Member
Joined
Oct 3, 2022
Messages
1
Office Version
  1. 365
Hi
Im trying to automate creating a basic report, in the below simplified format. What i want to happen is that every time button 1 is clicked a new row set or rows is added, i.e. next 3 rows are merged for columns a,b,c & d are merged but not for column e.

Would anyone be able to assist with the code to get started with this?

1664795694328.png

Thanks.
Will
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
You will find that merged cells most often create problems for macros so they should be avoided at all cost. I would suggest that you re-design your sheet to eliminate them. Then
perhaps you could use the XL2BB add-in (icon in the menu) to attach a screenshot (not a picture) of your sheet. It is hard to work with a picture. Alternately, you could upload a copy of your file to a free site such as www.box.com or www.dropbox.com. Once you do that, mark it for 'Sharing' and you will be given a link to the file that you can post here. Explain in detail what you want to do referring to specific cells, rows, columns and sheets using a few examples from your data (de-sensitized if necessary).
 
Upvote 0

Forum statistics

Threads
1,215,059
Messages
6,122,918
Members
449,093
Latest member
dbomb1414

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