VBA copde to open a hyperlink as a tif image

I have a hyperlink in excel to a file that can only be opened as a tif file. I cannot find any code to help be open microsoft imaging and open the file. Can anyone help me on this. I can make a stab at the code if I just knew the right way to do it.
j8547Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

GrahamSkanRetiredCommented:
Does the file open in any application if you click it in Windows Explorer? The file extension should be enough to open the assigned application.
0
GrahamSkanRetiredCommented:
If the file extension does not match the setting for Office Imaging, (Explorer/Tools/Folder Options..., File Types tab), it should be possible to specify the exe and the path name, e.g.:

"C:\Program Files\Common Files\Microsoft Shared\MODI\11.0\mspview.exe" "G:\My Pictures\Photos\1964\Scan00005.xxx"

That is what the mspview help says, but I confess that it doesn't work on my system. The application starts, but reports that it cannot open the specified file, even though the file is a renamed .tif file.

However, I have just rebuilt my system and Office 2003 has no service packs at the moment.
0
j8547Author Commented:
no its asks what app to open it with. It is a fax so it has a weird extension and always different. but it can be viewed when opened as a tif
0
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

j8547Author Commented:
I have a column witht eh path name. the column beside it changes it to a hyperlink. I want the user to be able to click on hyperlink and for it to open. This is the code i ahve for the hyperlink

ws.Cells(j, 3).FormulaR1C1 = "=HYPERLINK(RC[-1]:RC[-1])"

Where would i add for it to open with mspview.exe. Thanks
0
GrahamSkanRetiredCommented:
I gave you the wrong advice. I was treating the hyperlink as if it were a Command and I can't get it to work with any application. Totally wrong

I believe that your best plan would be to copy and/or rename the files the files to an with an extension that is assigned to Microsoft Document Imaging. That could be automated with VBA.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
j8547Author Commented:
I can't rename the files as the are faxes coming in every day and need to stay the same. I will keep at it. Thanks anyway for all your help
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Operating Systems

From novice to tech pro — start learning today.