Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Keeping Formulas Intact While Sorting | Excel Discussion (Misc queries) | |||
Sorting columns while keeping row data intact | New Users to Excel | |||
Merging two columns and keeping the data from both | Excel Worksheet Functions | |||
Adding data to celss but keeping the remaining data intact. | Excel Discussion (Misc queries) | |||
keeping rows intact during sort | Excel Discussion (Misc queries) |