Excel VBA - Function to show inputs needed and inputs used for a functioncall in a cell -
i want user-defined vba function better overview of inputs used bunch of different functions.
example
image have following function
public function simplefunction(firstnumber integer, secondnumber integer) integer simplefunction = firstnumber + secondnumber end function imagine have worksheet a1 equal 1 , a2 equal =simplefunction(a1, 2).
goal
i want develop function debugfunction
public function debugfunction(incell range) variant ' return matrix debug information end function letting b1:d3 contain ={debugfunction(a2)} i'd return this
| input name | input type | input used | ----------------------------------------- | firstnumber | integer | 1 | | secondnumber | integer | 2 | what have tried far?
not since i'm not sure how proberly , figure might come not clever solution compared possible. think parsing incell.formula way go.
edit
my ultimate goal showed in function arguments window seen here. realize parsing formula takes quite effort , not want that. if there way extract info window mentioned, i'd happy.

Comments
Post a Comment