Consulting

Results 1 to 4 of 4

Thread: How to open Other file types

  1. #1
    VBAX Master
    Joined
    Jun 2006
    Posts
    1,091
    Location

    How to open Other file types

    I would like to know how do I open a PDF file and also how do I open a Outlook template in Excel using code.
    Thank You,
    Daniel Blois
    http://studenthacker.blogspot.com/

  2. #2
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    FollowHyperlink is the simplest way for PDF, Not sure about the Outlook though.
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  3. #3
    VBAX Master
    Joined
    Jun 2006
    Posts
    1,091
    Location
    I did some research and found this:

    [VBA]expression.FollowHyperlink(Address, SubAddress, NewWindow, AddHistory, ExtraInfo, Method, HeaderInfo)[/VBA]

    What is expression?
    Thank You,
    Daniel Blois
    http://studenthacker.blogspot.com/

  4. #4
    Administrator
    VP-Knowledge Base VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    [VBA]Sub TestPdf()
    ActiveWorkbook.FollowHyperlink "C:\AAA\Range.pdf"
    End Sub
    [/VBA]
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •