![]() |
#5
|
|||
|
|||
![]()
alright.
so the code is not really necessary. i go from heading to heading and look what is unter the heading. if there is a table i go from wdCell to next wdCell and work with the cells. Code:
For Each wdCell In ActiveDocument.Tables(ThisTableNumber).Range.Cells Set Rng1 = wdCell.Range Rng1.End = Rng1.End - 1 If Rng1.Font.Bold = True Then Set Rng2 = wdCell.Next.Range Rng2.End = Rng2.End - 1 Select Case Rng1.Text Case "Name": TestcaseString = TestcaseString & "<name>" & Rng2 & "</name>" & vbCrLf if the Rng2 looks like: "Hello, This is Tom. Im 21 yrs old." the whole formatting gets lost. my xml file needs this formatting. a bold word needs to look like "<strong>word</strong>" in the xml file. and this is where i need some help or ideas. |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Formatting contents after Tab of continuous lines or formatting specific area of word | pawii | Word | 1 | 05-12-2014 05:24 AM |
![]() |
Word2007User | Word | 2 | 01-11-2014 06:33 PM |
![]() |
rhoyt | Word | 1 | 12-07-2013 09:40 AM |
![]() |
goldfish | Word | 8 | 04-25-2011 04:50 PM |
![]() |
Peter B. | Word | 5 | 05-10-2006 08:13 AM |