Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-13-2014, 06:35 AM
macropod's Avatar
macropod macropod is offline formatting from word in xml Windows 7 32bit formatting from word in xml Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default


You really haven't provided anywhere near enough information for anyone to work with. You've supplied no code, no source material or an example of what it's supposed to look like at the destination. I can't even tell from what you've posted whether strong should end up in the output looking like strong or <b>strong</b>, for example.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #2  
Old 08-13-2014, 06:42 AM
Tommes93 Tommes93 is offline formatting from word in xml Windows 7 64bit formatting from word in xml Office 2007
Novice
formatting from word in xml
 
Join Date: Mar 2014
Posts: 9
Tommes93 is on a distinguished road
Default

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
Now the problem is:
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.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
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
formatting from word in xml Formatting is restricted in Word 2007 but not in Word 2010 Word2007User Word 2 01-11-2014 06:33 PM
formatting from word in xml Word 2013 vs Word 2010 formatting issue? rhoyt Word 1 12-07-2013 09:40 AM
formatting from word in xml Formatting from PDF to WORD goldfish Word 8 04-25-2011 04:50 PM
Word Formatting Peter B. Word 5 05-10-2006 08:13 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:35 AM.


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