Hi there,
I've written my own little function to do some particular bits of math that I don't want to have to repeat over and over.
When I write the function into a cell (not using my defined function) I generally do a custom format like:
[Red][>2]">2";0.00
I don't want to have my defined function outputting the text ">2" since I want to be able to link to the cell from other functions. Is there a way to (in a defined function) change the format of a cell to "custom" and enter something? I know how to do this in a macro using Activecell.numberformat = "0.00" etc etc but this does not work in a defined function.![Oops! :oops: :oops:](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
I've written my own little function to do some particular bits of math that I don't want to have to repeat over and over.
When I write the function into a cell (not using my defined function) I generally do a custom format like:
[Red][>2]">2";0.00
I don't want to have my defined function outputting the text ">2" since I want to be able to link to the cell from other functions. Is there a way to (in a defined function) change the format of a cell to "custom" and enter something? I know how to do this in a macro using Activecell.numberformat = "0.00" etc etc but this does not work in a defined function.