Results 1 to 4 of 4
  1. #1
    bkirsch is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Nov 2011
    Posts
    39

    Runapp macro

    I understand how to use a runapp maro to open files excel windows etc...



    Is there a macro I can run to open an illustrator file??

    I tried a runapp with the following command

    "C:\Program Files\Adobe\Adobe Illustrator CS2\Adobe Illustrator CS2" "\\Ushccharfs01\groupdata\Sponsorship and Sales\Database\Blank_Term Sheet.pdf"

    but I am getting an error because it is not an ms-dos application....

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,600
    Is Adobe Illustrator your default program for pdf files? If so, just open the pdf file.

    http://www.ehow.com/how_7277774_open-pdf-file-vba.html
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    bkirsch is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Nov 2011
    Posts
    39
    Adobe Acrobat is my default for opening PDF's. I need to open this particular pdf in illustrator so it can be edited...

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,600
    I don't use macos, only VBA. Try this:

    Sub OpenPDF()
    Dim A As String
    Dim P As String
    Dim r As Integer
    A = Chr(34) & "C:\your path to app\AdobeIllustratorCS2.exe " & Chr(34)
    P = Chr(34) & "C:\your path to file folder\filename.pdf" & Chr(34)
    r = Shell(A & P, vbNormalFocus)
    End Sub
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Macro Help!
    By karanvemuri in forum Reports
    Replies: 5
    Last Post: 10-09-2011, 11:56 AM
  2. Macro help
    By jcaptchaos2 in forum Access
    Replies: 2
    Last Post: 05-04-2011, 09:50 AM
  3. Help With Macro's
    By GDubbs780 in forum Programming
    Replies: 1
    Last Post: 02-25-2011, 11:43 AM
  4. Replies: 0
    Last Post: 01-12-2011, 12:43 PM
  5. Need help with macro
    By abc123 in forum Programming
    Replies: 6
    Last Post: 06-13-2010, 12:34 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums