Hi Cameron,
Most WordBasic commands can be used in VBA by prefixes them with
WordBasic.[command name], so you could try using:
WordBasic.DlgFilePreview
I assume that command needs an argument of the template path\filename. My
attempts to use the following
WordBasic.DlgFilePreview(Options.DefaultFilePath(wdUserTemplatesPath) &
"\Anzac20.dot")
however result in an "illegal function call" message (but that maybe because
I do not have the correct syntax.
Another way to achieve what you want maybe to capture the file preview image
that is displayed by the File New dialog using something like Snagit from
www.techsmith.com and then to display the respective image in an image
control on the userform when a template is selected in the list box. A
better quality/more meaningful image might be obtained by capturing the
image of a document created from each template.
--
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.
Hope this helps
Doug Robbins - Word MVP