Consulting

Results 1 to 3 of 3

Thread: Automatic Updating of Functions in Excel

  1. #1
    VBAX Regular
    Joined
    May 2007
    Posts
    11
    Location

    Automatic Updating of Functions in Excel

    I created a function which is used in Excel and it does not always update. Is there a way to always get the function to update. When ever it doesn't update I get an error value #Value, but there is not an error with the function. When this happens I just go into the cell and refresh that cell and it works fine. Right now I have it on manual update so evern when I push F9 it does not update my user defined functions.

  2. #2
    Moderator VBAX Wizard lucas's Avatar
    Joined
    Jun 2004
    Location
    Tulsa, Oklahoma
    Posts
    7,323
    Location
    You might try setting it to automatic in the code before you run it and then set it back to manual when done...why are you using manual?
    [VBA]With Application
    .Calculation = xlAutomatic
    End With[/VBA]
    Steve
    "Nearly all men can stand adversity, but if you want to test a man's character, give him power."
    -Abraham Lincoln

  3. #3
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    I hesitate to say this, but maybe add

    Application.Volatile

    to the function
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •