• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 861
  • Last Modified:

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.
0
j8547
Asked:
j8547
  • 3
  • 3
1 Solution
 
GrahamSkanCommented:
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
 
GrahamSkanCommented:
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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
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
 
GrahamSkanCommented:
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
 
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

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now