![]() |
#2
|
|||
|
|||
![]()
You can try the code:
Code:
Option Explicit Sub test() Dim LastRow As Long, i, j As Integer, Val As String With Sheets("Sheet1") LastRow = .Cells(.Rows.Count, "A").End(xlUp).Row j = 2 For i = 1 To LastRow Val = .Cells(i, 1) .Cells(1, j) = Left(Val, Application.Find(":", Val, 1)) .Cells(2, j) = Right(Val, Len(Val) - Application.Find(":", Val, 1)) j = j + 1 Next i .Columns("A:A").Delete End With End Sub |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How can I convert pptx to text format like Word, and later on create pptx too? | GetLost | PowerPoint | 0 | 01-11-2012 04:23 AM |
My plain text post got converted to rich text in a reply, how to convert it back? | david.karr | Outlook | 0 | 01-05-2012 09:46 AM |
![]() |
Maureen | Excel | 1 | 11-10-2011 08:11 AM |
Renumbering lists for hidden text? | christie | Word | 1 | 09-04-2011 05:21 AM |
![]() |
manofspider | Excel | 1 | 08-05-2011 09:03 AM |