Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Merging 3 Columns in an Excel Spreadsheet (Keeping Data Intact)...?

Hello all,

I have a question regarding Excel 2000 (from Office Pro) and the use of
Macros. Essentially, i have a spreadsheet containing 20,000 records and i
have 3 columns that should be one - the data that was supposed to be in one
column has ended up split over 3 columns and i desperately need to fix this
but am lost as to how to go about it...?

I have created the following Macro which copies the contents of the 2nd and
3rd column into the 1st column but this only works for the first record -
would it be possible to make this automatically continue until there is no
more data to process...?

Sub Ma_Merge3Columns()
Range("N1").Select
ActiveCell.FormulaR1C1 = "Text Content"
Range("M1").Select
ActiveCell.FormulaR1C1 = "Text Content"
Range("O1").Select
ActiveCell.FormulaR1C1 = ""
Range("M1").Select
ActiveCell.FormulaR1C1 = "Text Content"
Range("M1").Select
End Sub

I would appreciate any advice on this matter...

Thanks in advance...

Regards,

Alex


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
Keeping Formulas Intact While Sorting PleaseHelp! Excel Discussion (Misc queries) 2 June 5th 08 02:20 PM
Sorting columns while keeping row data intact Paul New Users to Excel 5 February 21st 07 04:41 PM
Merging two columns and keeping the data from both Stosh Excel Worksheet Functions 9 July 27th 06 06:48 PM
Adding data to celss but keeping the remaining data intact. TP Excel Discussion (Misc queries) 4 April 13th 06 02:12 AM
keeping rows intact during sort Jim Excel Discussion (Misc queries) 2 November 25th 05 01:59 AM


All times are GMT +1. The time now is 12:23 AM.

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"