Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default open Tiff application from excel vba


i m trying to open Microsoft Office Document Imaging Application. I
think i need change in the following code:


Code:
--------------------
Set oApp = CreateObject("MSPVIEW.Application")
--------------------


also posted at: http://www.ozgrid.com/forum/showthread.php?t=43981


--
ilyaskazi
------------------------------------------------------------------------
ilyaskazi's Profile: http://www.excelforum.com/member.php...o&userid=23969
View this thread: http://www.excelforum.com/showthread...hreadid=494858

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default open Tiff application from excel vba

Try:

Sub Macro1()
x = Shell("cmd.exe /c C:\Userguide.tiff", 1)
End Sub

The will work and use whatever file associations you have established.
--
Gary's Student


"ilyaskazi" wrote:


i m trying to open Microsoft Office Document Imaging Application. I
think i need change in the following code:


Code:
--------------------
Set oApp = CreateObject("MSPVIEW.Application")
--------------------


also posted at: http://www.ozgrid.com/forum/showthread.php?t=43981


--
ilyaskazi
------------------------------------------------------------------------
ilyaskazi's Profile: http://www.excelforum.com/member.php...o&userid=23969
View this thread: http://www.excelforum.com/showthread...hreadid=494858


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default open Tiff application from excel vba


i dont need to open any file. I need to open only its application.


--
ilyaskazi
------------------------------------------------------------------------
ilyaskazi's Profile: http://www.excelforum.com/member.php...o&userid=23969
View this thread: http://www.excelforum.com/showthread...hreadid=494858

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default open Tiff application from excel vba

Try

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


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"ilyaskazi"
wrote in
message
...

i m trying to open Microsoft Office Document Imaging
Application. I
think i need change in the following code:


Code:
--------------------
Set oApp = CreateObject("MSPVIEW.Application")
--------------------


also posted at:
http://www.ozgrid.com/forum/showthread.php?t=43981


--
ilyaskazi
------------------------------------------------------------------------
ilyaskazi's Profile:
http://www.excelforum.com/member.php...o&userid=23969
View this thread:
http://www.excelforum.com/showthread...hreadid=494858



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default open Tiff application from excel vba


Your code is equivalent to:


Code:
--------------------
Sub BBB()
Dim x As Long

x = Shell("C:\Program Files\Common Files\Microsoft Shared\MODI\11.0\MSPVIEW.EXE", 1)
End Sub
--------------------


Before executing this macro, can we detect whether application is
already running/opened??


--
ilyaskazi
------------------------------------------------------------------------
ilyaskazi's Profile: http://www.excelforum.com/member.php...o&userid=23969
View this thread: http://www.excelforum.com/showthread...hreadid=494858



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Spreadsheet will not open without Excel Application being open fir Deirdre Lysaght Excel Discussion (Misc queries) 1 November 13th 07 04:11 PM
CommandButton in Excel to open another Application JohannM Excel Worksheet Functions 0 September 13th 06 09:29 PM
Can Excel open a new application every time you open a file? shoon Setting up and Configuration of Excel 0 December 13th 05 03:28 PM
How to set Excel to open a new window for each application Luke Excel Discussion (Misc queries) 1 September 28th 05 11:50 PM
Can not open excel files without open application Taarfa Excel Discussion (Misc queries) 3 July 9th 05 11:56 PM


All times are GMT +1. The time now is 05:32 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"