+ Reply to Thread
Results 1 to 5 of 5

asynchronous Procedure Calls

Hybrid View

Guest asynchronous Procedure Calls 11-08-2005, 08:55 PM
Guest Re: asynchronous Procedure... 11-08-2005, 09:10 PM
Guest Re: asynchronous Procedure... 11-08-2005, 09:25 PM
Guest Re: asynchronous Procedure... 11-08-2005, 10:00 PM
Guest Re: asynchronous Procedure... 11-08-2005, 10:20 PM
  1. #1
    Robert Mulroney
    Guest

    asynchronous Procedure Calls

    Can anyone point me to a good resource on writing asynchronous procedure
    calls? I am particually interested to know if it is possible to do an
    asynchronous call on the application.run("") procedure.

    - Rm

  2. #2
    Tim Williams
    Guest

    Re: asynchronous Procedure Calls

    Robert,

    I think Excel (in any single instance) is single-threaded, so I'm not surre
    it supports true asynchronous calls.

    Tim.

    --
    Tim Williams
    Palo Alto, CA


    "Robert Mulroney" <''''robert.mulroney@nh.org.au''''> wrote in message
    news:71B6E447-178F-438F-962E-3AA78B91E412@microsoft.com...
    > Can anyone point me to a good resource on writing asynchronous procedure
    > calls? I am particually interested to know if it is possible to do an
    > asynchronous call on the application.run("") procedure.
    >
    > - Rm




  3. #3
    Robert Mulroney
    Guest

    Re: asynchronous Procedure Calls

    I just want to be able to a cancel button to a form so users can end a
    calculation if it's taking too long.

    "Tim Williams" wrote:

    > Robert,
    >
    > I think Excel (in any single instance) is single-threaded, so I'm not surre
    > it supports true asynchronous calls.
    >
    > Tim.
    >
    > --
    > Tim Williams
    > Palo Alto, CA
    >
    >
    > "Robert Mulroney" <''''robert.mulroney@nh.org.au''''> wrote in message
    > news:71B6E447-178F-438F-962E-3AA78B91E412@microsoft.com...
    > > Can anyone point me to a good resource on writing asynchronous procedure
    > > calls? I am particually interested to know if it is possible to do an
    > > asynchronous call on the application.run("") procedure.
    > >
    > > - Rm

    >
    >
    >


  4. #4
    Alvin
    Guest

    Re: asynchronous Procedure Calls

    in your case, you can put "DoEvents" inside the long calculation/loop
    so vba can catch the cancel button events
    still it is not asynchronous and it's not the best way, but it's simple

    "Robert Mulroney" wrote:

    > I just want to be able to a cancel button to a form so users can end a
    > calculation if it's taking too long.
    >
    > "Tim Williams" wrote:
    >
    > > Robert,
    > >
    > > I think Excel (in any single instance) is single-threaded, so I'm not surre
    > > it supports true asynchronous calls.
    > >
    > > Tim.
    > >
    > > --
    > > Tim Williams
    > > Palo Alto, CA
    > >
    > >
    > > "Robert Mulroney" <''''robert.mulroney@nh.org.au''''> wrote in message
    > > news:71B6E447-178F-438F-962E-3AA78B91E412@microsoft.com...
    > > > Can anyone point me to a good resource on writing asynchronous procedure
    > > > calls? I am particually interested to know if it is possible to do an
    > > > asynchronous call on the application.run("") procedure.
    > > >
    > > > - Rm

    > >
    > >
    > >


  5. #5
    Robert Mulroney
    Guest

    Re: asynchronous Procedure Calls

    Yeah, I would normally do that but the procedure that I'm calling is from a
    3rd party product, I have no control over the function I'm trying to cancel.
    At the moment my fuction looks something like this:


    public sub doCalc()

    frmCCPending.show
    Activesheet.calculate

    ' I want to call this async
    Application.run("onCalculateHandler")
    frmCCPending.hide

    End Sub

    and we wait on the last line. I'd like to have a cancel button on
    frmCCPending that ends the async call. The procedure "onCalculateHandler" is
    defined in a locked 3rd party addin so I can't alter it and put a doEvents
    call in it.


    - Rm

    "Alvin" wrote:

    > in your case, you can put "DoEvents" inside the long calculation/loop
    > so vba can catch the cancel button events
    > still it is not asynchronous and it's not the best way, but it's simple
    >
    > "Robert Mulroney" wrote:
    >
    > > I just want to be able to a cancel button to a form so users can end a
    > > calculation if it's taking too long.
    > >
    > > "Tim Williams" wrote:
    > >
    > > > Robert,
    > > >
    > > > I think Excel (in any single instance) is single-threaded, so I'm not surre
    > > > it supports true asynchronous calls.
    > > >
    > > > Tim.
    > > >
    > > > --
    > > > Tim Williams
    > > > Palo Alto, CA
    > > >
    > > >
    > > > "Robert Mulroney" <''''robert.mulroney@nh.org.au''''> wrote in message
    > > > news:71B6E447-178F-438F-962E-3AA78B91E412@microsoft.com...
    > > > > Can anyone point me to a good resource on writing asynchronous procedure
    > > > > calls? I am particually interested to know if it is possible to do an
    > > > > asynchronous call on the application.run("") procedure.
    > > > >
    > > > > - Rm
    > > >
    > > >
    > > >


+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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