![]() |
#14
|
|||
|
|||
![]()
Rose,
I'm pressed for time today, but one option would be to use mapped content controls to store your metadata. Mapped CCs are bound to a data node in a customXMLPart that become part of the document. It is an easy step to then save the data as a text file: Sub ScratchMacro() Dim fso As Object 'A basic Word macro coded by Greg Maxey 'MsgBox ActiveDocument.CustomXMLParts(4).XML Set fso = CreateObject("Scripting.FileSystemObject") Dim oFile As Object Set oFile = fso.CreateTextFile("C:\New File") oFile.WriteLine ActiveDocument.CustomXMLParts(1).XML oFile.Close Set fso = Nothing Set oFile = Nothing lbl_Exit: Exit Sub End Sub |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
User Form - Close Paragraphs | SonyaEnz | Word VBA | 4 | 06-05-2015 06:16 AM |
User form | abdulgani | Excel | 0 | 12-15-2014 05:54 AM |
how to save contents in textbox in VB2013 form into a Word document? | saltlakebuffalo | Word VBA | 6 | 12-10-2014 06:12 PM |
![]() |
lgillespie | Word | 6 | 09-09-2013 03:13 PM |
![]() |
placasse47 | Excel Programming | 3 | 08-01-2012 05:57 AM |