![]() |
#1
|
|||
|
|||
![]() I am trying to come up with some code to test a situation. I have a table which may, or may not have some text in a particular cell. I want to put another table within the cell. The new table would happen after the point where the user had placed the cursor. (Basically a box within a box). The table would be on the next line after the text. Alternatively, if there was no text, it would be at the top of the cell. There are two situations I want to test for. 1. If the selection is at the end of the text, I want to check if there is a blank line below the selection and if not add a line. - Selection.InsertAfter Chr(11) 2. If the selection is on a blank line, I will add the inner table on that line. The creation of the inner table works fine. Just having trouble getting to the right place to insert the table. |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Ephasa | Word | 9 | 04-30-2020 02:09 PM |
How do I select all blank line paragraphs in a doc? | eabeer | Word | 4 | 03-08-2018 12:19 AM |
![]() |
Ziad El Hachem | Word VBA | 4 | 03-21-2017 06:55 PM |
How to add a blank line within an exporting sub? | Geza59 | Excel Programming | 2 | 02-14-2013 12:23 AM |
![]() |
Nibbles | Mail Merge | 4 | 11-21-2012 02:32 AM |