U
Ulf Nilsson
Hi,
How do I open a pdf-file using VBA? The name can vary.
Following code works:
Dim RetVal
RetVal = Shell("C:\\Adobe\Acrobat 5.0\Acrobat\Acrobat.exe
c:\test\123.pdf", vbMaximizedFocus)
Follwing code does not work:
Dim RetVal
Const fPDF = "C:\Test\123.pdf"
RetVal = Shell("C:\\Adobe\Acrobat 5.0\Acrobat\Acrobat.exe
fPDF", vbMaximizedFocus)
What´s the solution?
/ Ulf
How do I open a pdf-file using VBA? The name can vary.
Following code works:
Dim RetVal
RetVal = Shell("C:\\Adobe\Acrobat 5.0\Acrobat\Acrobat.exe
c:\test\123.pdf", vbMaximizedFocus)
Follwing code does not work:
Dim RetVal
Const fPDF = "C:\Test\123.pdf"
RetVal = Shell("C:\\Adobe\Acrobat 5.0\Acrobat\Acrobat.exe
fPDF", vbMaximizedFocus)
What´s the solution?
/ Ulf