Launch Excel and open the Visual Basic Editor by going to the Tools->Macro-> Visual Basic Editor.
In the Visual Basic Editor, go to Tools > Web Service References. Selecting this brings up this dialog:Select the checkbox Web Service URL and enter this value: https://ras.biodiversity.aq/aphia.php?p=soap&wsdl=1
Then click 'Search', a search result will appear in the top right. Check the box to it's left.
Clicking the Add button will make Excel generate VBA code for the service.
Add this piece of code by choosing Insert->Module. Copy this code into your Excel VBA module
Option Explicit 'Excel VBA Function to call the AphiaNameService Public Function getAphiaID(taxon As String) As Single Dim aphia As New clsws_AphiaNameService getAphiaID = aphia.wsm_getAphiaID(taxon, True) End FunctionYour screen should look something like this:
Close the VB Editor.
You can now use the function getAphiaID as you would any built-in Excel function.
Select the cell you want the value displayed in, then go to the Insert menu and choose Function.
In the Paste Function dialog box, scroll down to User Defined functions and you should see getAphiaID listed:
The result should be something like this: