PC Review


Reply
Thread Tools Rate Thread

How to copy data from merged cells to their individual cells?

 
 
Saleem
Guest
Posts: n/a
 
      23rd Sep 2008
I have some data in two or three merged columns and want to duplicate the
data in the individual columns.Pls help. Thanks
 
Reply With Quote
 
 
 
 
Barb Reinhardt
Guest
Posts: n/a
 
      23rd Sep 2008
This requires unmerging the cells to do. Try this. (and thanks for
asking). I need this for something else I do and never even thought about it.

Sub test()
Dim r As Range
Dim myRange As Range
For Each r In ActiveSheet.UsedRange
If r.MergeArea.Count > 1 Then
Set myRange = r.MergeArea
r.UnMerge
myRange.Value = r.Value
End If
Next r

End Sub
--
HTH,
Barb Reinhardt

"Saleem" wrote:

> I have some data in two or three merged columns and want to duplicate the
> data in the individual columns.Pls help. Thanks

 
Reply With Quote
 
Gord Dibben
Guest
Posts: n/a
 
      23rd Sep 2008
If you truly merged the columns, you lost the data in all but the left hand
column so there is nothing unmerge.

If you mean you combined the columns data using the CONCTENATE function or
the ampersand like +A1 & B1 & C1 then I would suggest trying Data>Text to
Columns to undo the combining after you copy/paste special/values.


Gord Dibben MS Excel MVP

On Tue, 23 Sep 2008 03:12:01 -0700, Saleem <Saleem
@discussions.microsoft.com> wrote:

>I have some data in two or three merged columns and want to duplicate the
>data in the individual columns.Pls help. Thanks


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with pasting special merged cells to merged cells ritpg Microsoft Excel Programming 3 9th Mar 2010 07:14 PM
Copy paste non merged to merged cells jamalhakem@gmail.com Microsoft Excel Worksheet Functions 1 5th Feb 2009 05:25 PM
RE: Select Merged Cells and Unmerge Spread Merge Data To All Cells RyanH Microsoft Excel Programming 0 2nd Oct 2008 03:38 AM
RE: Copy Visible Cells in Sheet with Merged and Hidden Cells FSt1 Microsoft Excel Misc 1 2nd Oct 2008 12:51 AM
Copy Merged Cells to Single Cells ?? Al Franz Microsoft Excel Programming 4 22nd Apr 2007 06:03 PM


Features
 

Advertising
 

Newsgroups
 


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