-
Try & figure this
I have a general Word2000 document with fields linked to a dbf (dbase) file via MailMerge. I've now saved the Word document as an htm file. The fields still merge to the dbf file with IE's 'Edit with MS Word for Windows'. OK so far. But now I would like the htm page to MailMerge with a dbf file based on the htm's filename automatically. Ex. Project12.htm will MailMerge with Project12.dbf. The dbf and htm file will both have the same name, BUT the names will change depending on what the user selects. So next time the user might select Project5 and the htm page must MailMerge with Project5.dbf.
I'm able to view the htm source code through IE's 'Edit with MS Word for Windows' -- View Menu -- HTML Source.
Anyone have an ideas OR knows how to capture the htm page's name as a variable and modify the MailMerge code in the htm page?
Thanks in advance.