Hi there, I am stuck developing a VBA userform thats supposed to serve a dual purpose, depending on the information entered:
1) update an employee resource list with monthly data on '% of time logged' per project
2) add new entries for employees who are either new, or have just begun working on a new project.
The major problem I'm having is dynamically transposing the data from the userform to the 'resourcelist' tab. I can't seem to comprehend a formula that can search if an employee has worked on specified project before, and from there add the time logged to the column of the month specified. Furthermore, if they have not worked on the project, a new entry must be created with the first time logged in that specified month as well.
Perhaps a visual-aid may help with understanding my problem (seen below). Say for instance, the user enters (in their respecive fields) 'homer, working 0.4, on project 2 for m3,' the form aims to create a new entry for homer with appropriate time logged in m3.
It's very complex, I am aware. It should be noted that I am new to VBA as well, but I've picked up some fundamentals quite easily.
The commands are as follows:
nametextbox
projectcombobox
month[1,2,...,n]combobox
timeloggedtextbox
I would show my VBA code thus far but I doubt the proper solution is remotely close to an extension of what I've produced.
Any help is greatly appreciated!
Ryan
[TABLE="class: grid, width: 500"]
<TBODY>[TR]
[TD]Name
[/TD]
[TD]Project
[/TD]
[TD]m1
[/TD]
[TD]m2
[/TD]
[TD]m3
[/TD]
[TD]m4
[/TD]
[TD]m5
[/TD]
[/TR]
[TR]
[TD]bart
[/TD]
[TD]project 1
[/TD]
[TD]0.5
[/TD]
[TD]0.4
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]bart
[/TD]
[TD]project 2
[/TD]
[TD]0.4
[/TD]
[TD]0.4
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]homer
[/TD]
[TD]project 1
[/TD]
[TD]0.3
[/TD]
[TD]0.3
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</TBODY>[/TABLE]
1) update an employee resource list with monthly data on '% of time logged' per project
2) add new entries for employees who are either new, or have just begun working on a new project.
The major problem I'm having is dynamically transposing the data from the userform to the 'resourcelist' tab. I can't seem to comprehend a formula that can search if an employee has worked on specified project before, and from there add the time logged to the column of the month specified. Furthermore, if they have not worked on the project, a new entry must be created with the first time logged in that specified month as well.
Perhaps a visual-aid may help with understanding my problem (seen below). Say for instance, the user enters (in their respecive fields) 'homer, working 0.4, on project 2 for m3,' the form aims to create a new entry for homer with appropriate time logged in m3.
It's very complex, I am aware. It should be noted that I am new to VBA as well, but I've picked up some fundamentals quite easily.
The commands are as follows:
nametextbox
projectcombobox
month[1,2,...,n]combobox
timeloggedtextbox
I would show my VBA code thus far but I doubt the proper solution is remotely close to an extension of what I've produced.
Any help is greatly appreciated!
Ryan
[TABLE="class: grid, width: 500"]
<TBODY>[TR]
[TD]Name
[/TD]
[TD]Project
[/TD]
[TD]m1
[/TD]
[TD]m2
[/TD]
[TD]m3
[/TD]
[TD]m4
[/TD]
[TD]m5
[/TD]
[/TR]
[TR]
[TD]bart
[/TD]
[TD]project 1
[/TD]
[TD]0.5
[/TD]
[TD]0.4
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]bart
[/TD]
[TD]project 2
[/TD]
[TD]0.4
[/TD]
[TD]0.4
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]homer
[/TD]
[TD]project 1
[/TD]
[TD]0.3
[/TD]
[TD]0.3
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</TBODY>[/TABLE]