VBA Help - This should be an easy one :-)
Posted by Dan on December 11, 2001 12:09 PM
I am experienced in VB, but have not worked with VBA for Excel much. I am trying to find a way to change the format of a number in a field.
What I want to be able to do is turn a value of pennies intot he corresponding dollars/quarters/dimes/nickles/pennies value.
I don't need help with the formula to convert, I need help with getting the formula integrated into Excel.
What I was thinking was make a function, so it could be used much like the ADD function. I want to be able to have a section where the user could shut off this feature. I did that part by adding a field that only accepts the values Yes of No. I can then reference that field in the function to check to see what the the value is. If it is yes, quit the function and return the value in pennies. If it is no, run the function and return the value in the seperated by change.
So, how do I do this in excel? I am sure I can figure it out as soon as someone gives me a point in the right direction. Thanks for your help.