Results 1 to 2 of 2

Thread: function property/rng update

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2003
    Posts
    2

    function property/rng update

    Does anyone know how to change the property of a function
    so that Excel will update when F9 is pressed? I have
    written a random number generator sourced on two
    parameters (input by the user) as a callable function in
    excel. However once the number has been generated and is
    in the cell, pressing F9 does nothing (I guess because the
    parameters have not changed). So, how do you get Excel to
    realise that the function is a rng and so
    should 'recalculate' at the press of F9?????

  2. #2
    Let me in .. techyspecy's Avatar
    Join Date
    Aug 2002
    Location
    Back to VBF.
    Posts
    2,456
    You can record a new macro in excel. Go to Excel. Tools -> Macro -> Record new Macro. You can specify the shortcut key (unfortunately it does not allow function keys, you can use any combination with Ctrl + .. like Ctrl + a, ctrl + f or something). Now you can edit this macro and write your VB code in it. Once you save it and every time you press your key combination, you function code will execute.

Posting Permissions

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



Click Here to Expand Forum to Full Width