Hi all!
I come back with some more feedback for you all
@Norie:
Couldn't you store the data for FunkDef_InterneWerte on a worksheet?
I thought of this way at the very beginning of starting the code. What put me a little off was the fact that if I can have all the code under the UserForm, then later if I'd like to implement this code in other workbooks, then I could very easily export the UserForm as a single file and simply import it in the target workbooks. If I read the variables from a worksheet in the workbook, later on I´d also have to copy the worksheet with the variables (array elements) and paste it to the target workbooks...It isn´t a big deal but I saw saving the code in only one file (UserForm) like easier to manage in the future...
But if doing it so, I can compile the code, avoid that error message and keep on coding further, then I guess I can accept this solution
In order to build this code lines up, I´ve used the Ampersand excel function which it was of a great help naturally...
Oh and most of your With statements aren't needed.
I´m intrigued about this .... In my limited experience of three weeks as a VBA Newbie I´ve managed to learn this way with With Statements for setting up 3 dependent ComboBoxes. I learnt it from here: http://www.excel-easy.com/vba/exampl...mbo-boxes.html and when I needed to add a third ComboBox the issue of lacking know-how on VBA programming came up and opened a thread in this forum to get some more information/help. In the end, I used a If Statement. I´m sure there are more efficient ways to do this but I don´t know them... How do you mean exactly about not using With statements? How would you do that instead?
( NOTE: My only experience with programming is regarded to PLC´s ( Programmable Logic Controllers) ...VBA is something totally new to me. 10 years ago I learn in the school some very basics of C++ )
Quick question, why do you have 25 comboboxes?
I forgot to delete the VBA Sheet "Entwurf" (German for "Draft")
It´s a bit tricky to be explained ....but in the end I dismissed that tasks' approach . This little Macro shows orderly through the dependant comboboxes several categories of elements sorted out according to a criteria based on a database hierarchy structure. In the DB are allowed up to 100 assignments (entries on the ComboBox 3)...it takes long to properly explain it but keeping it straight: I can manage it with only 3 ComboBoxes and some extra functions (numbering button)
@Cytop: Thanks for the example! I´m though trying to understand the code you added....
a) I have to google "Option Compare Text" to fully understand what this line means.
b) Public FunkDef_InterneWerte As Variant...ok, the variable "FunkDef_InterneWerte " is defined as public, to be available later on for multiple Subs I guess..or is it only for test purposes? ---> Sub test()
c) Under the Sub UserForm_Initialize ()...
c.1) I dont understand here how .UsedRange references to the values in the Worksheet "Funkdef" ...could you maybe please explain me a little bit further about it? ...or point me to some other posts in the forum related to this ?
https://msdn.microsoft.com/en-us/lib.../ff840732.aspx ...unfortunately I cant still see how the values in "Funkdef" are selected
c.2) I also have to google this "Debug.Assert False"
On Monday I go further with the code.
Thanks for your hints and a nice weekend!
Bookmarks