PC Review


Reply
Thread Tools Rate Thread

Delete break line between column A & B

 
 
tom.greenan@sbcglobal.net
Guest
Posts: n/a
 
      17th Jul 2007
I have the first name in column A and the last name in Column B and I
want to take out the line between the two columns and put the first
and last names in the same field. Your input is appreciated.

 
Reply With Quote
 
 
 
 
Gary Keramidas
Guest
Posts: n/a
 
      17th Jul 2007
here's one way, assuming the data starts in A2

Sub join_names()
Dim ws As Worksheet
Dim lastrow As Long
Dim i As Long
Set ws = Worksheets("Sheet1")
lastrow = ws.Cells(Rows.Count, "A").End(xlUp).Row
For i = 2 To lastrow
With Range("A" & i)
.Value = .Value & " " & .Offset(, 1).Value
End With
Next
End Sub

--


Gary


<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I have the first name in column A and the last name in Column B and I
> want to take out the line between the two columns and put the first
> and last names in the same field. Your input is appreciated.
>



 
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
optional line break -break line w/o hyphen; for long method names =?Utf-8?B?Y2F0aGVyaW5lX3RlY2h3cml0ZXI=?= Microsoft Word Document Management 1 19th Jul 2006 08:38 PM
How do I delete a line break in Microsoft Word? =?Utf-8?B?cGhvdG9jaGljaw==?= Microsoft Word Document Management 2 30th May 2006 05:00 PM
Line break in X-axis column label? Ed Microsoft Excel Charting 2 24th Apr 2006 08:27 PM
Column break adds a line =?Utf-8?B?RGFubyBPJ0Q=?= Microsoft Word Document Management 2 11th Nov 2004 10:15 PM
Column Break (dotted vertical line) Mona Lowrey Microsoft Excel Misc 3 18th Oct 2003 01:20 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:59 PM.