I searched, and I know how to call a function from Personal.xlsb from a VB macro, but how can I call a function to be used in a new book?
Here is my function stored in 'Module1' in my Personal.xlsb :
Public Function GetColumnLetter(colNum As Integer) As String Dim d As Integer Dim m As Integer Dim name As String d = colNum name = "" Do While (d > 0) m = (d - 1) Mod 26 name = Chr(65 + m) + name d = Int((d - m) / 26) Loop GetColumnLetter= name End Function
I created a new book and thought that I could call it simply =getcolumnletter(1) , but the function does not "fill" when I type =...
Am I missing something? How to use this function in other books without VBA?
Thanks for any advice!
source share