+ Reply to Thread
Results 1 to 2 of 2

Application.Volatile Question, HelP!!!

  1. #1
    k. moran
    Guest

    Application.Volatile Question, HelP!!!

    Okay here's my problem,

    I have a VBA subroutine (Marco) that I want to run, BUT in my worksheets I
    also have functions that I've written (in VBA) that are Application.Volatile.

    So when I run the subroutine, Excel also has to re-calculate "all" the
    functions in all cells that are in all the worksheets.

    What happens is that everything grinds to a halt!

    What can I do???

    Much Thanks As Always! Kurt

    Function TotalPCRs() As Integer

    Application.Volatile


  2. #2
    Dave Peterson
    Guest

    Re: Application.Volatile Question, HelP!!!

    I think I'd do my best to remove the application.volatile line and pass the
    parms that I need to the UDF.

    But if that's not possible, maybe you could disable events, run your code and
    enable events.

    application.enableevents = false
    'your code here
    application.enableevents = true



    k. moran wrote:
    >
    > Okay here's my problem,
    >
    > I have a VBA subroutine (Marco) that I want to run, BUT in my worksheets I
    > also have functions that I've written (in VBA) that are Application.Volatile.
    >
    > So when I run the subroutine, Excel also has to re-calculate "all" the
    > functions in all cells that are in all the worksheets.
    >
    > What happens is that everything grinds to a halt!
    >
    > What can I do???
    >
    > Much Thanks As Always! Kurt
    >
    > Function TotalPCRs() As Integer
    >
    > Application.Volatile


    --

    Dave Peterson

+ 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