ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   unmerge with macro (https://www.excelbanter.com/excel-programming/412405-unmerge-macro.html)

Alfred[_4_]

unmerge with macro
 
Hi
Is it possible to write a macro to find all merged cells and then either
delete them or unmerge them.
Thanks for help
Alfred


Dave Peterson

unmerge with macro
 
Record a macro when you select all the cells and remove the merged cells (from
the alignment tab of the format dialog).

Alfred wrote:

Hi
Is it possible to write a macro to find all merged cells and then either
delete them or unmerge them.
Thanks for help
Alfred


--

Dave Peterson

JE McGimpsey

unmerge with macro
 
One way:

Public Sub UnmergeAll()
ActiveSheet.Cells.MergeCells = False
End Sub

In article ,
"Alfred" wrote:

Hi
Is it possible to write a macro to find all merged cells and then either
delete them or unmerge them.
Thanks for help
Alfred



All times are GMT +1. The time now is 08:27 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com