Hi again!
In the attachment is a worksheet containing a custom function. Could I get some assistance with regards returning the calculation in the format shown in column G in the attachment?!
Another question!
Is it possible to call a sub procedure from within a function procedure? Why I ask… I don’t believe I can return the answer from a function procedure to the spreadsheet in a centered format. What I want to know is if its possible to embed the name of a sub procedure inside the function procedure. I tried it, but it debugs. I don’t know if i am going about it in the right manner. See example:
Function PercInc(Current_Year, Previous_Year) Result = (Current_Year - Previous_Year) / Previous_Year PercInc = Format(Result, "#.00%") CenterVal End Function Sub CenterVal() ActiveCell.HorizontalAlignment = xlCenter End Sub
Could anyone assist with these two questions please?
Thanx