Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 wrote in message ups.com... 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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Challenge - Excel Line Feed Character CHR(10) - How to Delete and keep the text formatting without going ro single line in a cell ? | Excel Worksheet Functions | |||
Line break | Excel Discussion (Misc queries) | |||
How do I delete a line at the edge of a column that's not formatte | Excel Discussion (Misc queries) | |||
Break cell into multiple lines by line break | Excel Discussion (Misc queries) | |||
Line break in X-axis column label? | Charts and Charting in Excel |