Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default 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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default 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
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default 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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
MACRO - Unmerge cells and delete blank columns, leaving data colum Alex Sander Excel Programming 5 August 8th 06 12:10 PM
How do you unmerge cells Freddo Excel Discussion (Misc queries) 1 June 7th 06 05:01 PM
Unmerge+copy Macro Anil Gupte Excel Discussion (Misc queries) 8 December 15th 05 11:13 AM
macro to unmerge columns HankY Excel Discussion (Misc queries) 2 December 8th 05 06:04 AM
How do I get macro to unmerge cells that have been previously merg HankY New Users to Excel 2 December 8th 05 05:52 AM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"