
Originally Posted by
savyback
Hi Cupitron, unfortunately i need code for a form. I know that it's more simply getting it with pivot table, but the attached example is a part of a big project (with other data) entirely developed with vba/form.
Moreover it could be fantastic getting a pivot table on a form!
Greeting from Milan (I) !!
& Thank's in advance!
Hi savyback,
Create a new module in VBProject and insert the following code.
I also removed your code that calls the UserForm under "Questa_cartella_di_lavoro" just so this is all in one module, but you can put it back there if you wish. You must comment out that code first before attempting to run this, otherwise you will get an error.
I also added a button on the Figlio1 sheet to show the form.
The number of Provincia Abbreviations is dynamic in the search but it will not generate new ComboBoxes on the UserForm for additional provincia...
In case you can't get the code to work, I've upload my edited version of the file.
I hope this helps.
Cheers,
-Dan
Bookmarks