Where to find a VBA function's source in Excel
I hope I understand your question... From reading other answers I see that it is not a recorded macro. It's safe to assume then that someone wrote it in VBA. Try the following:
- Press Alt+F11 to open your VBA editor
- Click View -> Project Explorer (it may already be visible.) (or: CTRL+R)
- You should see "VBAProject(your workbook name.xls). Click that.
- Click one of the sheets under 'Microsoft Excel Objects' in the Project explorer.
- Click View -> Code
- Click Edit -> Find
- Type the name of the function in the box
- Ensure 'Current Project' is selected.
- Click Find Next
That should take you to where the function is written.
Press ALT + F11 to see the VBA project window. You should be able to find the code for the custom function in there.