View Single Post
 
Old 01-11-2015, 12:37 AM
tinfanide tinfanide is offline Windows 7 64bit Office 2010 32bit
Expert
 
Join Date: Aug 2011
Posts: 312
tinfanide is on a distinguished road
Default Convert Text To Table: Separate text at (Other)?



Code:
Sub ConvertTextToTable()
    
Dim oRange As Word.Range
     
If ActiveDocument.Bookmarks("bmTable").Range.Tables.Count <> 0 Then Exit Sub
 
Set oRange = ActiveDocument.Bookmarks("bmTable").Range
oRange.ConvertToTable Separator:=???
 
Set oRange = Nothing
End Sub
I wonder how I can use other separators / delimiters, in my example that is a pipe ("|"). Please see the ??? in the codes above.

Thanks!
Reply With Quote