ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   macro to unmerge columns (https://www.excelbanter.com/excel-discussion-misc-queries/59260-macro-unmerge-columns.html)

HankY

macro to unmerge columns
 
A recorded macro for unmergin 2 merged columns in a worksheet doesnot work.
It tries to merge the cells again and as a result wipes out the data.

Gord Dibben

macro to unmerge columns
 
Show us the code.


Gord Dibben Excel MVP

On Wed, 7 Dec 2005 10:42:02 -0800, "HankY"
wrote:

A recorded macro for unmergin 2 merged columns in a worksheet doesnot work.
It tries to merge the cells again and as a result wipes out the data.


HankY

macro to unmerge columns
 
I dont have the code available right now(at home) but the code in the
recorded macro had a"merge" command in it. I changed the code to select the
columns and did an "unmerge" and it worked correctly. If I go thru the same
steps without recording the macro..the columns/cells are unmerged correctly.

"HankY" wrote:

A recorded macro for unmergin 2 merged columns in a worksheet doesnot work.
It tries to merge the cells again and as a result wipes out the data.



All times are GMT +1. The time now is 11:40 AM.

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