#1
|
|||
|
|||
Working with styled material instead of text
I have been manipulating text instead of styled material (not sure what to call it, but could have equations, etc.). My code does this, where I copy the "original part" having certain styles and in one part of the document, paste (as text) it into a different part of the document with a different style, and operate on it. Think of the "original part" as being like a numbered list with additional paragraphs. The other part lists "examples" of what is in the numbered list.
Original part: Style1 1. Text Style2 para1; Style2 para2. Style2 (blank) Style1 2. Text that refers to 1 Style2 para3; Style2 para4. Style2 (blank) Inserted and modified material: Style3 Example of 1. Text; para1; para2. Style3 Example of 2. Text that refers to 1; para3; para4. Some of the code looks like this: Code:
However, this works (for the numbering too) perfectly if you have nothing but text in the original part. If you have equations, or elements that are not text, it does not copy the equations/whatever is not text and other things happen. I would like to keep those equations and non-text elements. Can I paste in styled material, operate on it, convert it to Style3 (the style that's used where I paste this)? If so, what code could I use? If not, how would I attempt to do this? Thanks for any help. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Displaying custom-styled text from the document body in the left margin | Nebulous | Word | 3 | 11-25-2019 01:06 PM |
Conversion of Columnwise Bill of Material into Rowwise Bill of Material using Excel Macro VBA | mpapreja | Excel Programming | 4 | 05-21-2018 05:35 AM |
TOC and document contains figures and table captions and everything that is not "normal" text styled | ki_ha1984 | Word | 5 | 06-21-2017 07:25 AM |
How to create single graph figures with multiple graphs inbedded - Taguchi styled analysis | Esaylikepie | Excel | 6 | 10-24-2016 06:37 AM |
Selecting styled text | Caroline | Word | 5 | 02-15-2011 12:55 PM |