How to change the default settings in Word for programs associated with certain file extensions

M

Matthew

Hello to everyone, I really wonder if someone can help me:
I wrote a document with lots of VBA macros to support which is
basically a list of hyperlinks to JPEG-files. The idea is to click on a
small image and have it opened then by the relevant program, for my
preferences e.g. the Windows Picture and Fax Viewer for JPEG-files. But
here is the big problem: Word seems to assume a different default
program ("associate") with JPEG-files than in my Windows settings, in
Word 2002 it always uses the Internet Explorer, in Word 2000 the MS
Photo Editor. I tried very hard to make it alter this, but I failed. I
finally had all the JPEG-files' extension changed to some unknown
format, like *.abc, then Word will use the Windows setting for this
extension alright, but it will come up with a warning message each
time, saying something like "unknown data format, possible danger, are
you sure you want to open this file?" with default setting of "No" or
"Abort". This is very annoying, also since some other programs will not
be able to identify these JPEG-files with a different extension any
more.
Do you know a solution? There has to be a possibility to influence what
program is used by word to open a file with.
Thanks a lot & best regards,
Matthew
 
C

Cindy M.

Hi Matthew,

Show us the code you're using?
Hello to everyone, I really wonder if someone can help me:
I wrote a document with lots of VBA macros to support which is
basically a list of hyperlinks to JPEG-files. The idea is to click on a
small image and have it opened then by the relevant program, for my
preferences e.g. the Windows Picture and Fax Viewer for JPEG-files. But
here is the big problem: Word seems to assume a different default
program ("associate") with JPEG-files than in my Windows settings, in
Word 2002 it always uses the Internet Explorer, in Word 2000 the MS
Photo Editor. I tried very hard to make it alter this, but I failed. I
finally had all the JPEG-files' extension changed to some unknown
format, like *.abc, then Word will use the Windows setting for this
extension alright, but it will come up with a warning message each
time, saying something like "unknown data format, possible danger, are
you sure you want to open this file?" with default setting of "No" or
"Abort". This is very annoying, also since some other programs will not
be able to identify these JPEG-files with a different extension any
more.
Do you know a solution? There has to be a possibility to influence what
program is used by word to open a file with.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 
M

Matthew

Hi Cindy,
thanks a lot for assisting me!
I am not sure if you are asking about the VBA-code I am using to create
these hyperlinks, or the code of these hyperlinks normally hidden in
the respective field. Anyway I give you both:
Firstly, I usually create a hyperlink by the common
(ActiveDocument).Hyperlinks.Add-Method with its parameters like Anchor,
Address, ScreenTip etc.. Its parameter Target is about naming the frame
or window in which to open, but unfortunately lacks the possibility to
determine the software to be used.
Secondly, the hyperlink is thus a field code like {HYPERLINK
"(folder)\\(filename).jpg" \o "\(filename)"}
I hope this answers your question. Still I cannot see which one helps
resolving the issue; I suspected the solution somewhere in the general
options-settings of Word.
Looking forward to hear from you,
Matthew
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top