Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-11-2015, 12:37 AM
tinfanide tinfanide is offline Convert Text To Table: Separate text at (Other)? Windows 7 64bit Convert Text To Table: Separate text at (Other)? Office 2010 32bit
Expert
Convert Text To Table: Separate text at (Other)?
 
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
  #2  
Old 01-11-2015, 12:56 AM
gmayor's Avatar
gmayor gmayor is offline Convert Text To Table: Separate text at (Other)? Windows 7 64bit Convert Text To Table: Separate text at (Other)? Office 2010 32bit
Expert
 
Join Date: Aug 2014
Posts: 4,105
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

Do you mean like
Code:
oRange.ConvertToTable Separator:="|"
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
  #3  
Old 01-12-2015, 05:26 AM
tinfanide tinfanide is offline Convert Text To Table: Separate text at (Other)? Windows 7 64bit Convert Text To Table: Separate text at (Other)? Office 2010 32bit
Expert
Convert Text To Table: Separate text at (Other)?
 
Join Date: Aug 2011
Posts: 312
tinfanide is on a distinguished road
Default

Yes, that's what I want.
Thank you very much!
Reply With Quote
Reply

Tags
convert text to table



Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert Text To Table: Separate text at (Other)? Convert image-text hybrids into plain text morlack Excel 4 12-03-2014 05:29 PM
Convert graphic to text in a table Jennifer Murphy Word 6 01-24-2013 12:56 PM
Why does Word separate table and reference endnotes by allowing text to go in between newby2013 Word Tables 2 12-31-2012 03:45 PM
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 Text To Table: Separate text at (Other)? Separate body text from TOC heading text Gordc Word 5 06-15-2011 04:17 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:01 PM.


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