![]() |
|
#2
|
||||
|
||||
|
If all you are outputting is just the "File_Name", "Full_Path", "CreationTime" and "Size", I have to wonder why you're bothering with mergefields. After all, you're not using them for a mailmerge - all you're doing is using them as placeholders that you replace with your data. You could just as easily insert them as strings into an ordinary document with code like:
oWord.Characters.Last.InsertParagraphAfter; oWord.Characters.Last.InsertAfter strFilename; oWord.Characters.Last.InsertParagraphAfter; oWord.Characters.Last.InsertAfter strFull_path; oWord.Characters.Last.InsertParagraphAfter; oWord.Characters.Last.InsertAfter strCreationTime; oWord.Characters.Last.InsertParagraphAfter; oWord.Characters.Last.InsertAfter strSize; oWord.Characters.Last.InsertParagraphAfter;
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Export VBA form Data to CSV | rhys.downard | Outlook | 0 | 02-29-2012 07:35 AM |
Export Data from Ms project to Ms access using VBA
|
virencm | Project | 4 | 02-08-2012 03:18 PM |
| Export data from multiple attachments into a single excel document | Woolstar | Outlook | 0 | 12-07-2011 09:49 AM |
Macro to loop in subfolders, change links, export xml data
|
Catalin.B | Excel Programming | 2 | 09-08-2011 11:37 PM |
| Create a Custome Form and export data to Access | ashleybyrdnc | Office | 0 | 03-05-2010 09:41 AM |