+ Reply to Thread
Results 1 to 3 of 3

Opening a program from excel Help.

  1. #1
    Registered User
    Join Date
    12-21-2011
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    3

    Exclamation Opening a program from excel Help.

    Hi guys, I am sort of new to excel and do not know many of the features. Here is what I am trying to do.

    I am trying build a list of items in excel. Each listed item will have an appropriate AUTOCAD (.dwg) file associated with it. I want to make it so that I can eventually sort this list by several different specs. and I want to have it so that there will be something like a button next to each list that when I click it will make AUTOCAD open up and display the .dwg file IN AUTOCAD associated with it.

    I am absolutely clueless on how to do this. I have searched many sites to have none of them do what I want. I would appreciate a dumbed-down version of how I can go about to achieve this.

    Thanks to everyone in advance

  2. #2
    Registered User
    Join Date
    12-21-2011
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Opening a program from excel Help.

    I think I figured it thanks anyway

  3. #3
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: Opening a program from excel Help.

    Hi Richard, welcome to the forum.

    Please post your solution so it may help others.

    One option, in case it's different from your method, would be to put the full path/filename into a cell and then use the Worksheet_BeforeDoubleClick event. You can then double-click on that cell and it will open the program and file specified. (Full path/filename like: c:\users\Paul\desktop\diagram.dwg)

    1. Add the following to the worksheet code module (right-click on sheet tab and choose View Code):
    Please Login or Register  to view this content.
    2. Add the following code to a standard module (in the VB Editor, click Insert > Module):
    Please Login or Register  to view this content.
    Change the program path/filename to your actual Autocad program executable path/filename.

+ 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