End of table cell character.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Can someone provide me with the searchable string (probably ^+ charcter) for
the end of cell character in a Word table. I want to write a short macro that
will split each row in a table to a separate table. Can it be done?
Thanks,
 
I don't think you can find end of cell marks - they are special characters,
length 2 = chr(13) Chr(7)

To split each row of a table into a separate table, try ..

For r = ActiveDocument.Tables(1).Rows.Count To 2 Step -1
ActiveDocument.Tables(1).Split r
Next

substituting a reference to your own table, of course
 
Hi Tony,
It works great but only for the first table in the document. How can I
adjust the code such that it splits the current table where the cursor is
located.
Thanks,
 
Don't know where in the world you are but there must be time for at least
one more problem :-)

Glad I could help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top