+ Reply to Thread
Results 1 to 4 of 4

calculate now for user defined functions?

Hybrid View

  1. #1
    Mike
    Guest

    calculate now for user defined functions?

    Hi, if I manually or programmatically paste data into 2+ cells with user
    defined functions only the first cell's function is executed. Is there some
    sort of equivalent to Calculate or some other way to force this? I have
    found that if I manually cut the formula from the cell and paste it back
    into the same cell, it executes, but that seems hacky and burdensome.

    Thanks,
    Mike



  2. #2
    Jim Thomlinson
    Guest

    RE: calculate now for user defined functions?

    Make your first line in the UDF

    Application.Volatile

    This will for the UDF to recalucate with each calculation of the sheet.
    --
    HTH...

    Jim Thomlinson


    "Mike" wrote:

    > Hi, if I manually or programmatically paste data into 2+ cells with user
    > defined functions only the first cell's function is executed. Is there some
    > sort of equivalent to Calculate or some other way to force this? I have
    > found that if I manually cut the formula from the cell and paste it back
    > into the same cell, it executes, but that seems hacky and burdensome.
    >
    > Thanks,
    > Mike
    >
    >
    >


  3. #3
    me
    Guest

    Re: calculate now for user defined functions?

    Thank you Jim. I tried that, but have some sort of concurrency/infinite loop
    issues remaining. Are their known problems with putting UDFs in the
    worksheet_change event?
    "Jim Thomlinson" <[email protected]> wrote in
    message news:[email protected]...
    > Make your first line in the UDF
    >
    > Application.Volatile
    >
    > This will for the UDF to recalucate with each calculation of the sheet.
    > --
    > HTH...
    >
    > Jim Thomlinson
    >
    >
    > "Mike" wrote:
    >
    >> Hi, if I manually or programmatically paste data into 2+ cells with user
    >> defined functions only the first cell's function is executed. Is there
    >> some
    >> sort of equivalent to Calculate or some other way to force this? I have
    >> found that if I manually cut the formula from the cell and paste it back
    >> into the same cell, it executes, but that seems hacky and burdensome.
    >>
    >> Thanks,
    >> Mike
    >>
    >>
    >>




  4. #4
    Peter
    Guest

    Re: calculate now for user defined functions?

    Hi,

    I faced the same problem that deleting / pasting cell in Excel will fire the
    Calculate event to execute again & again (infinite loop)...

    Is it a known bug of UDF and Calculate event?

    Thanks,
    Peter

    "me" wrote:

    > Thank you Jim. I tried that, but have some sort of concurrency/infinite loop
    > issues remaining. Are their known problems with putting UDFs in the
    > worksheet_change event?
    > "Jim Thomlinson" <[email protected]> wrote in
    > message news:[email protected]...
    > > Make your first line in the UDF
    > >
    > > Application.Volatile
    > >
    > > This will for the UDF to recalucate with each calculation of the sheet.
    > > --
    > > HTH...
    > >
    > > Jim Thomlinson
    > >
    > >
    > > "Mike" wrote:
    > >
    > >> Hi, if I manually or programmatically paste data into 2+ cells with user
    > >> defined functions only the first cell's function is executed. Is there
    > >> some
    > >> sort of equivalent to Calculate or some other way to force this? I have
    > >> found that if I manually cut the formula from the cell and paste it back
    > >> into the same cell, it executes, but that seems hacky and burdensome.
    > >>
    > >> Thanks,
    > >> Mike
    > >>
    > >>
    > >>

    >
    >
    >


+ 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