Excel VBA tool to validate VAT Registration Numbers for EU and UK business customers, using public WebAPIs.
EuropeVatValidator.xlsm
file.Validator
and enter/paste VAT numbers to be validated in column VAT Registration Number
. Valid format is {ISO Country Code}{vat number}
Run Validator
icon from Excel Quick Access ToolbarConnect via proxy server
and enter proxy user and password. Other proxy settings going to be loaded automatically in background.Start
to run validation process or Cancel
to close user formEropean Commission's VIES (VAT Information Electronic System) offers SOAP service which allows to validate VAT Registration Number for EU countries (see table below). For more details about service see VIES FAQ. | |||
---|---|---|---|
AT-Austria | EE-Estonia | IE-Ireland | PL-Poland |
BE-Belgium | EL-Greece | IT-Italy | PT-Portugal |
BG-Bulgaria | ES-Spain | LT-Lithuania | RO-Romania |
CY-Cyprus | FI-Finland | LU-Luxembourg | SE-Sweden |
CZ-Czech Republic | FR-France | LV-Latvia | SI-Slovenia |
DE-Germany | HR-Croatia | MT-Malta | SK-Slovakia |
DK-Denmark | HU-Hungary | NL-The Netherlands | XI-Northern Ireland |
As brexit became a fact, HMRC (HM Revenue & Customs) provides separate web service to check UK companies vat numbers. See Check a UK VAT number API documentation for more details.
For HTTP communication I have used VBA library availble at VBA-Web repository.
Where early binding have been used, following references must be set up within VBE: