+ Reply to Thread
Results 1 to 2 of 2

VBA: Wait for next command till .exe application is opened. How?

  1. #1
    Registered User
    Join Date
    03-04-2022
    Location
    Netherlands
    MS-Off Ver
    365
    Posts
    1

    VBA: Wait for next command till .exe application is opened. How?

    Hello,

    I am trying to adapt a SolidWorks (CAD program) file with Excel data. So I am programming in Excel VBA. I want Excel VBA to open the SldWorks application, after that opening a SolidWorks file. Opening SolidWork is time consuming, and the opening-time varies on different pc`s
    Does someone know how to satisfy that the SldWorks application opening process is completed before running next command in VBA? See code. Sub Combination gives run-time Error 429. (Run-time error '429': ActiveX component can't create object.)
    The separate subs are working fine.
    (Probably a thread related to this problem already exists, but it is difficult for me to search for something unknown.)

    Thanks in advance for your reaction,

    Bernard

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow Re: VBA: Wait for next command till .exe application is opened. How?


    Hello,

    if the file extension belongs to SolidWorks then you should use GetObject VBA function to open the file like SolidWorks as well in the same time.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Macro wait till range(s) filled, then resume.
    By drgkt in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-15-2017, 06:11 PM
  2. How to write VBA and wait for workbook opened
    By niuyuer in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-07-2016, 11:42 AM
  3. [SOLVED] How to get MsgBox to wait till values in both cells are entered before popping up
    By mitchellA in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-25-2016, 01:47 AM
  4. [SOLVED] Help with Application.OnTime (was Application.Wait Now)
    By Walter12 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-29-2012, 01:18 PM
  5. Disable all applications till userform is opened
    By sam_14 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-28-2012, 01:10 PM
  6. Send Excel attachment, but wait till Outlook closes
    By thepython in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-17-2006, 05:30 PM
  7. [SOLVED] row that needs to wait till the next page break befor copying
    By wil4d in forum Excel General
    Replies: 0
    Last Post: 12-20-2005, 10:40 AM

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