silentwolf
Well-known Member
- Joined
- May 14, 2008
- Messages
- 1,216
- Office Version
- 2016
Hi guys,
I have some issues with getting following to work.. or better am a bit stuck on how to go about it.
In my userform I have a listbox with employees...
Two texboxes with txtStart, txtEnd and a monthview and some other comboboxes for different data to insert into my worksheet.
What I like to achieve is when I select those employees I like to copy the same data
so the data looks like below
Date.........Start...........End...............Activity...........Employee........Objekt......Total Time
1/1/2016...08:00..........12:00............Loading...........Müller..............Gruber......4
What I like to do is after selecting different employees in the lstEmployees say for example ...Huber; Maier;
to insert the via VBA
Date.........Start...........End...............Activity...........Employee........Objekt......Total Time
1/1/2016...08:00..........12:00............Loading...........Huber..............Gruber......4
1/1/2016...08:00..........12:00............Loading...........Maier ..............Gruber......4
and if I select only one of corse it would be entered like to first example... or three employees three times and so on..
I got the code worked out for copy the last used row but it would be great if it works depanding on which employee(s) are selected in the listbox..
Hope this is clear what I am after and someone could help me with this.. please!
Many thanks
I have some issues with getting following to work.. or better am a bit stuck on how to go about it.
In my userform I have a listbox with employees...
Two texboxes with txtStart, txtEnd and a monthview and some other comboboxes for different data to insert into my worksheet.
What I like to achieve is when I select those employees I like to copy the same data
so the data looks like below
Date.........Start...........End...............Activity...........Employee........Objekt......Total Time
1/1/2016...08:00..........12:00............Loading...........Müller..............Gruber......4
What I like to do is after selecting different employees in the lstEmployees say for example ...Huber; Maier;
to insert the via VBA
Date.........Start...........End...............Activity...........Employee........Objekt......Total Time
1/1/2016...08:00..........12:00............Loading...........Huber..............Gruber......4
1/1/2016...08:00..........12:00............Loading...........Maier ..............Gruber......4
and if I select only one of corse it would be entered like to first example... or three employees three times and so on..
I got the code worked out for copy the last used row but it would be great if it works depanding on which employee(s) are selected in the listbox..
Hope this is clear what I am after and someone could help me with this.. please!
Many thanks