I have a spreadsheet with user defined functions that I developed and work fine in Excel 2003 but will not work in Excel 2007.
I just started using Excel 2007 (not my choice) so are there settings in 2007 that I need to make for using UDF or is there something in the code that is wrong?
Here is the function:
Function ListWS(sWB As String, i As Integer) As String
'This function is used to list the worksheets for a given spreadsheet
ListWS = Workbooks(sWB & ".xls").Worksheets(i).Name
End Function
Thanks for the help
I just started using Excel 2007 (not my choice) so are there settings in 2007 that I need to make for using UDF or is there something in the code that is wrong?
Here is the function:
Function ListWS(sWB As String, i As Integer) As String
'This function is used to list the worksheets for a given spreadsheet
ListWS = Workbooks(sWB & ".xls").Worksheets(i).Name
End Function
Thanks for the help