Results 1 to 2 of 2

Thread: Open Excel Document With VB

  1. #1

    Thread Starter
    Fanatic Member The_Grudge's Avatar
    Join Date
    Jan 2005
    Location
    Canada
    Posts
    836

    Open Excel Document With VB

    Here's what I'd like to do.

    I'd like to put a command button on my VB form that says "View File" or something to that effect. When the user clicks that button all I want it to do is open up a specified file in Excel.

    Basically, the button would just function as a shortcut to the Excel file. The file would open in Excel as well. All VB does is open it.

    Simple huh?

    I know I'll need "App.Path" in there somewhere because that's where I'll store the file, I'm just not sure how to open it.

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Open Excel Document With VB

    This FAQ thread has the answer:
    http://www.vbforums.com/showthread.php?t=348138

    You just need to use the path to your file in the appropriate place.

Posting Permissions

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



Click Here to Expand Forum to Full Width