PC Review


Reply
Thread Tools Rate Thread

conbine cells into one column

 
 
=?Utf-8?B?R3JlZw==?=
Guest
Posts: n/a
 
      9th Nov 2006
Hi,

I have a database with 70 columns and need to get rid of rows with identical
information.

I just recored the following macro, but it is lenghthy + there is 256 char
limitation.

ActiveCell.FormulaR1C1 = "=RC[-70]&RC[-69]&RC[-68]&RC[-67] .... so on"

Is there is a way to do it differently?

Thank you
--
______
Regards,
Greg
 
Reply With Quote
 
 
 
 
=?Utf-8?B?R3JlZw==?=
Guest
Posts: n/a
 
      9th Nov 2006
tried something like this, limiting to 255 char, not perfect but will do for
the time being

Dim form As String

n = 70
form = ""
For i = n To 1 Step -1

form = form & "&RC[-" & i & "]"

Next
form = "=left(" & Right(form, Len(form) - 1) & ",255)"

ActiveCell.FormulaR1C1 = form
--
______
Regards,
Greg


"Greg" wrote:

> Hi,
>
> I have a database with 70 columns and need to get rid of rows with identical
> information.
>
> I just recored the following macro, but it is lenghthy + there is 256 char
> limitation.
>
> ActiveCell.FormulaR1C1 = "=RC[-70]&RC[-69]&RC[-68]&RC[-67] .... so on"
>
> Is there is a way to do it differently?
>
> Thank you
> --
> ______
> Regards,
> Greg

 
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
Conbine 3 My Calendars into one (Outlook 2003) Lyn Microsoft Outlook Calendar 1 2nd Dec 2008 02:12 AM
Display cells(text) in one column based on cells which are present inother column sunnykumar948@gmail.com Microsoft Excel Misc 1 12th May 2008 01:40 PM
Copying a column of single cells into a column of merged cells clairejane_99@hotmail.com Microsoft Excel Misc 1 16th Aug 2006 01:18 PM
How can you conbine two contacts into one. =?Utf-8?B?aGNiY29zbw==?= Microsoft Outlook Contacts 1 17th Jun 2006 03:01 PM
conbine lists from multiple worksheets =?Utf-8?B?ZGVmbGF0ZWQ=?= Microsoft Excel Misc 0 6th Apr 2006 07:28 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:21 AM.