Vba - Open TIF File Using MODI

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

Declare Function FindExecutable Lib "shell32.

dll" _
Alias "FindExecutableA" (ByVal lpFile As String, _
ByVal lpDirectory As String, ByVal lpResult As String) As
Long
Sub AAA()
Dim FName As String
Dim ExeName As String
FName = ThisWorkbook.Path & Application.PathSeparator &
"__TEMP.tif"
Open FName For Output As #1
Close #1
ExeName = String(255, " ")
FindExecutable FName, "", ExeName
Kill FName
Shell ExeName
End Sub
Sub BBB()
Dim x As Long
x = Shell("C:\Program Files\Common Files\Microsoft Shared\MODI\11.0\MSPVIEW.EX
E", 1)
End Sub
Set oApp = CreateObject("MSPVIEW.Application")

You might also like