Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 01-31-2012, 01:45 AM
Catalin.B Catalin.B is offline Convert lists of text in Word to excel Windows Vista Convert lists of text in Word to excel Office 2010 32bit
Expert
 
Join Date: May 2011
Location: Iaşi, Romānia
Posts: 386
Catalin.B is on a distinguished road
Default

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
If you find them useful, the formulas used in the macro are in the file attached
Attached Files
File Type: xlsm split.xlsm (19.3 KB, 18 views)
Reply With Quote
 



Similar Threads
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
Convert lists of text in Word to excel Drop-down lists in Excel Maureen Excel 1 11-10-2011 08:11 AM
Renumbering lists for hidden text? christie Word 1 09-04-2011 05:21 AM
Convert lists of text in Word to excel XML List of lists in Excel or Calc manofspider Excel 1 08-05-2011 09:03 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:03 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft