>>>>> Hi. I'm just learning how to use Word 2003 mail merge to create
>>>>> HTML templates for my website. The only problem is that the
[quoted text clipped - 27 lines]
> I don't know much about scripting and expected something
> simpler. But if I have to I'll give it a try. Thanks again.
Graham's website suggests he's out of the picture for a few weeks, so I'll
answer what I can...
> 1.) The output HTML files were saved to the "my documents folder." Is
> there
> a way I can set the output files to the folder of my choice? Or could I at
> least set the
> output to be saved in the same folder from which I loaded my original doc
> files?
The values returned by "Dir()" are just the file names, not the full path
names, so in this case you could you could change
myHTML = Left(myFile, myLen2) & "HTML"
to
myHTML = PathToUse & Left(myFile, myLen2) & "HTML"
(It seems that Graham is already assuming that PathToUse is empty or ends
with a "\" or just contains "<a drive letter>:")
> 2.) The HTML is not filtered and therefore I get some extra data in the
> HTML
> source. Is there a way I can clean up the HTML during the macro?
Try changing
myDoc.SaveAs FileName:=myHTML, FileFormat:=wdFormatHTML
to
myDoc.SaveAs FileName:=myHTML, FileFormat:=wdFormatFilteredHTML
> 3.) Does it matter that the Word default macro template does not contain
> the word "Public" preceeding the word sub?
Not really, when you're just running the macro as a one-off in this way.
When you're writing a suite of macros, getting declarations such as this one
"correct" becomes more important if not critical. But you'ld be better off
asking in a general VBA programming group about that.
> It is located in my Applications Data\Microsoft\Word startup folder
> as MailMergetoDocsRev19.dot. Are the two files equivalent?
Don't know, sorry. Doug Robbins may be able to tell you if you post another
message (don't use the same title) just describing this one issue.
Peter Jamieson
>>>>>> Hi. I'm just learning how to use Word 2003 mail merge to create
>>>>>> HTML templates for my website. The only problem is that the
[quoted text clipped - 103 lines]
> I'd like to again thank you so much for all your assistance in this
> matter.
M.L. - 17 Jul 2006 16:23 GMT
>>>>>>> Hi. I'm just learning how to use Word 2003 mail merge to create
>>>>>>> HTML templates for my website. The only problem is that the
[quoted text clipped - 103 lines]
>> I'd like to again thank you so much for all your assistance in this
>> matter.
> Graham's website suggests he's out of the picture for a few weeks, so I'll
> answer what I can...
[quoted text clipped - 45 lines]
>
> Peter Jamieson
Thanks Peter, I'll incorporate the changes into the macro. BTW, I found that
Word has an option that allows me to save *all* files as filtered HTML. I
could just set that option on or off when needed.