+ Reply to Thread
Results 1 to 2 of 2

Thread: how to open documents with a button?

  1. #1
    Registered User
    Join Date
    03-31-2009
    Location
    Portugal
    MS-Off Ver
    Excel 2007
    Posts
    59

    how to open documents with a button?

    How can I open a word or a pdf document with a button by a vb code?

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    2003 & 2007 & 2010
    Posts
    11,351

    Re: how to open documents with a button?

    Use the FollowHyperlink method, change path and file name to suit.

    Sub Button1_Click()
    
        ActiveWorkbook.FollowHyperlink "C:\x.pdf"
    
    End Sub
    Cheers
    Andy
    www.andypope.info

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.2.0