+ Reply to Thread
Results 1 to 3 of 3

Opening Files From Spreadsheet using VBA

  1. #1
    Registered User
    Join Date
    08-27-2012
    Location
    Sydney
    MS-Off Ver
    Excel 2007
    Posts
    7

    Opening Files From Spreadsheet using VBA

    Hi there,

    I have a piece of code that I use to open up files (in this case, a pdf file) on my hard drive, however it opens it up and displays the file as an image, rather than as a pdf file via the Adobe program - see code below:

    Please Login or Register  to view this content.
    I would like help on two matters here:
    1. How can I open the file via Adobe (or similar) rather than as an image?
    2. How do I get the program to search using a different directory (rather than C:\ drive), as I plan on sending out the completed Excel file to customers on a CD or thumb drive. Not know what my customer's directory name will be makes this piece of code redundant apart from on my machine where I know I keep the pdf files.

    Hoping that someone can assist me with this enquiry.

    Thanks

    Mark
    Last edited by arlu1201; 08-29-2012 at 03:41 AM.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Opening Files From Spreadsheet using VBA

    Mark,

    Welcome to the forum.

    I have added code tags to your post. As per forum rule 3, you need to use them whenever you put any code in your post. Please add them in future. If you need more information on how to use them, check my signature.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Opening Files From Spreadsheet using VBA

    Please Login or Register  to view this content.
    oughta work for any registered file type
    Josie

    if at first you don't succeed try doing it the way your wife told you to

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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.6.0 RC 1