问题
I wish to manually code VLOOKUP in python, so is it possible to see the VBA code behind VLOOKUP? I remember a presentation in my school by a guest speaker showing that the Excel Functions are just macro/vba codes. Can someone please show me the way to view the code for Excel Worksheet functions?
回答1:
I do not know of a way to view the XL code for VLOOKUP (its almost certainly written in C).
The basic algorithms used in VLOOKUP are Linear Search for unsorted data, and Binary Search for sorted data. There are many examples available on the web of implementing these algorithms.
回答2:
Excel functions i dont' know, but to Excel Add-ins it's possible.
Add a add-in to your excel application, and go to Visual Basic Editor, double click in add-in and use this passwords.
Add-in -- Password
- Internet Assistant VBA -- Weezaarde!?
- Autosave Addin -- Wildebeest!!
- Analysis Toolpak VBA -- Wildebeest!!
- Solver Add-in -- Wildebeest!!
All forms be design in excel forms sheets used in older versions of Excel.
[]'s
来源:https://stackoverflow.com/questions/4130199/accessing-vlookup-macro-code-in-excel