Question : Hex2Dec does not work in Excel Function ... make Functions visible to other spreadsheets.

1) When try to execute a Hex2Dec conversion in an Excel Function (Visual Basic) I get a compile error "Sub or Function not defined".  It works fine when I execute a Hex2Dec in the spreadsheet.  Example:

    Function Test(HexNum)
        Test = Hex2Dec(HexNum)
    End Function

2) I have created a group of functions in one spreadsheet.  How do I make these functions visible to other spreadsheets?

Please advise.

Answer : Hex2Dec does not work in Excel Function ... make Functions visible to other spreadsheets.

eisenbeisz,

You might also want to have a look at the following link:
http://www.cpearson.com/excel/ATP.htm

It covers how to make functions delivered via the Analysis Toolpak (like HEX2DEC) available in a VBA project.

Regards,

Patrick
Random Solutions  
 
programming4us programming4us