Hi
@luca90 &
@AliGW,
Here is the solution to extract all the data from the table on that webpage.
I have attached the complete Excel spreadsheet to this response, so you don't need to copy or paste any code yourself. Everything is pre-configured and ready to use!
How to use it:
- Open the attached spreadsheet.
- Make sure macros are enabled if Excel prompts you.
- Simply click the "Run" button on the sheet.
The script will automatically connect to the live webpage, bypass the security layers using a targeted CSS selector (div.box-dis-cont), and pull all the municipalities along with their corresponding 5-digit postal codes (CAP) directly into your table within seconds.
If this spreadsheet helps you get all the values cleanly,
please don't forget to hit the thumbs-up (upvote) button!
Thanks!
View attachment 91525