Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / January 2007

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Matthew - 27 Dec 2006 03:40 GMT
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
Cindy M. - 27 Dec 2006 10:20 GMT
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
[quoted text clipped - 15 lines]
> 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 :-)
Matthew - 19 Jan 2007 01:46 GMT
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

Cindy M. schrieb:

> Hi Matthew,
>
[quoted text clipped - 27 lines]
> This reply is posted in the Newsgroup; please post any follow question or
> reply in the newsgroup and not by e-mail :-)
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.