Firstly:
Correct some of your procedures and check if they will work correctly after the code has been corrected:
1. Change your existing 'CommandButton3_Click' to:
where 'macro_1' (below) should be placed in a module, e.g. 'Module1, Module2', etc.:
2. Change your existing 'CommandButton4_Click' to:
where 'macro_2' (below) should be corrected and placed in a module, e.g. 'Module1, Module2', etc. (together with 'macro_1'):
3. Change your existing 'CommandButton1_Click' to:
where 'macro_3' (below) should be corrected and placed in a module, e.g. 'Module1, Module2', etc. (together with 'macro_1' and 'macro_2'):
In this way, you will be able to use macros independently of each other if necessary (either by buttons or otherwise).
Secondly:
Change your existing 'Function dobiPodatke' (in Class Modules) to:
The changes are cursory and should not affect the action/working of macros.
Thirdly:
After the above, if everything will work, place following procedures in the 'Sheet10(IzracunPOV)' module and try:
An important issue:
On sheet 'Baza', starting from column 'N', there must be one row of space between the last elements of lists in columns and other data.
Bookmarks