Share via

Running processes with VBA

Anonymous
2010-06-23T14:35:19+00:00

Hi,

Using http://support.microsoft.com/kb/129796 to kick-off a process in VBA.

The VBA code successfully waits for the process to exit before continuing, but the process isn't killed when Excel is abruptly terminated. Is there a way to create a process like that?

Thanks.

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

10 answers

Sort by: Most helpful
  1. Anonymous
    2010-06-23T16:54:17+00:00

    Hi,

    Not wishing to be vague, the answer to that would depend on the spawned process but in general I doubt very much if you will be able to achieve what you want but look forward to someone coming up with a solution.


    If this post answers your question, please mark it as the Answer.

    Mike H

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2010-06-23T16:49:43+00:00

    Sure, I understand that it's too late for Excel to act. But is there a way to make the spawned process be dependent on the parent process being alive?

    thanks

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2010-06-23T16:17:21+00:00

    Hi,

    I think if the Excel process is killed in that way then it can have no influence over the process you called with shell.


    If this post answers your question, please mark it as the Answer.

    Mike H

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2010-06-23T15:18:08+00:00

    hi Mike,

    Thanks for your reply.

    I mean if the Excel process is killed by Task Manager for example.

    Cheers,

    Antranik

    Was this answer helpful?

    0 comments No comments
  5. Anonymous
    2010-06-23T14:53:27+00:00

    hi,

    What do you mean by 'abruply terminated'?


    If this post answers your question, please mark it as the Answer.

    Mike H

    Was this answer helpful?

    0 comments No comments