VBA userforms(Combobox - saving - editing of data)

19339

New Member
Joined
Sep 12, 2018
Messages
2
[FONT=&quot]Hello my name is sebastiaan and i am doing an internship in an company fort hat company i am trying to make an excel file that works with userforms to keep track of the maintance of the UV machines that are installed in section 1-8 and in 9-12 and in 13-16.[/FONT]
[FONT=&quot]
[/FONT]

[FONT=&quot]Each section has 4 userforms:[/FONT]
[FONT=&quot]Main userform: Program1_8 & Program9_12 & Program13_16[/FONT]
[FONT=&quot]Nieuw(new) userform: Program1_81 & Program9_121 & Program13_161[/FONT]
[FONT=&quot]Login userform: Program1_82 & Program9_122 & Program13_162[/FONT]
[FONT=&quot]Bewerken(edit) userform: Program1_83 & Program9_123 & Program13_163[/FONT]
[FONT=&quot]
[/FONT]

[FONT=&quot]The sheets are are as following:[/FONT]
[FONT=&quot]Main sheet: has the 3 tables that are connected tot the first Userform of each section and also connected tot the bewerken(edit) userform[/FONT]
[FONT=&quot]Lampnumber sheets: in these sheets i was planning to save the new entries of data from the nieuw(new) userform wich would be stored in its corresponding Lampnumber sheet in the table wich are marked by colour that belongs to one of the sections[/FONT]
[FONT=&quot]
[/FONT]

[FONT=&quot]The working of the userforms should work as the following:[/FONT]
[FONT=&quot]The main userform is connected with the corresponding table in the main sheet and you can only look through the data with the main userform and not edit any data.[/FONT]
[FONT=&quot]
[/FONT]

[FONT=&quot]The nieuw(new) userform would create an new entry of data that would be saved following the chosen Lampnumber in the corresponding table in the Lampnumber sheets in the rigth table colour that belongs to that section.[/FONT]
[FONT=&quot]
[/FONT]

[FONT=&quot]The login userform works by using the login information and once typed right it should open the bewerken(edit) userform.[/FONT]
[FONT=&quot]
[/FONT]

[FONT=&quot]The bewerken(edit) userform works by being connected to the table in the Main sheet that belongs to the corresponding section in the userform you can select the lampnumber and see all the information as you can aslo see in the Main userform only now you can edit it and save it.[/FONT]
[FONT=&quot]
[/FONT]

[FONT=&quot]Login information:[/FONT]
[FONT=&quot]Name: Admin[/FONT]
[FONT=&quot]Ww: 1234[/FONT]
[FONT=&quot]
[/FONT]

[FONT=&quot]The colours of the tables corresponding tot he sections are[/FONT]
[FONT=&quot]1-8: Blue
9-12: Orange[/FONT]

[FONT=&quot]13-16: Green[/FONT]
[FONT=&quot]
[/FONT]

[FONT=&quot]The problem that I have and I need help with is that don’t know or understand wich code I should use or need to use to make the Nieuw(new) userform work per section.[/FONT]
[FONT=&quot]or how to make the bewerken(edit) userform work so that it saves the data on the correct table in the Lampnumber sheets.[/FONT]
[FONT=&quot]
[/FONT]

[FONT=&quot]I once asked on an other forum how to connect the combibox of Program1_8 with the table on the top of the Main sheet after wich i got an responce and an code to use i tried to edit the code so that it also works with the other userforms: Program9_12 and Program13_16 i hope that somebody could also provide me with the code for that or can explain it to me how to edit it correctly[/FONT]
[FONT=&quot]
[/FONT]

[FONT=&quot]
[/FONT]

[FONT=&quot]don't know how to up an file here so i uploaded it on an diffrent site hope that's not agains any rules[/FONT]
[FONT=&quot]https://ufile.io/vpnfd[/FONT]
[FONT=&quot]
[/FONT]

[FONT=&quot]
[/FONT]

[FONT=&quot]^^^those are the probelms that i have and i hope that someone could help me with it.[/FONT]
[FONT=&quot]My main language is not english so i hope it is readble if there are any questions about anything that is unclear feel free to ask i will responce as fast as i can.[/FONT]
[FONT=&quot]I am looking forward to your responds thx already in forward.[/FONT]
[FONT=&quot]Greetings,[/FONT]
[FONT=&quot]
[/FONT]

[FONT=&quot]Sebastiaan[/FONT]
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Upvote 0

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top