Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to copy data from merged cells to their individual cells?

I have some data in two or three merged columns and want to duplicate the
data in the individual columns.Pls help. Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default How to copy data from merged cells to their individual cells?

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

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default How to copy data from merged cells to their individual cells?

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 DataText 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
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
Copy Visible Cells in Sheet with Merged and Hidden Cells rtwiss Excel Discussion (Misc queries) 5 April 25th 23 09:08 AM
Copy non merged to merged cells [email protected] Excel Worksheet Functions 3 February 6th 09 03:13 PM
Copy non merged to merged cells again [email protected] Excel Worksheet Functions 2 February 6th 09 03:01 PM
Copy paste non merged to merged cells [email protected] Excel Worksheet Functions 1 February 5th 09 05:25 PM
Copy Merged Cells to Single Cells ?? Al Franz Excel Programming 4 April 22nd 07 06:03 PM


All times are GMT +1. The time now is 01:04 PM.

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

About Us

"It's about Microsoft Excel"