scorp007
New Member
- Joined
- Sep 27, 2014
- Messages
- 9
My experience has been mainly with procedural programming. I am basically a VBA neophyte. babe in the woods. I have created some VBA macros that worked.. but they are crude. I am not used to working with OO type languages (this is the first). So, bear with me if I ask some stupid questions.
I have also used some very sweet and to the point macros - that I've copied from this forum. And learned much from them. So I thank the people here for contributing so much.
I am trying to create a chart from some data, and I would like to use VBA to do this, as the schedules change - people come and go, projects change their times sometimes. I would like a type of gantt chart.. but not really, because I don't care about showing progress. Just what project jobs are running when. I have jobs that run weekly, monthly, annually, biannually, and just kind of random because they depend on other factors. Gantt charts seem to be only able to show one event per row (from the ones I've seen created from Excel). I need to be able to show several events per row - for instance, a job that runs biannually will have 2 "events" positioned by date for the row for that project.
I would think this wouldn't be hard, but I have been going around in circles trying to find an example that I could use, and can't. I probably am not looking for the right type of chart.
My goal is to be able to take this data and create a chart with a VBA macro (because the data changes sometimes) where I can go right to the date I'm interested in (usually today or next week) and see what Jobs/projects are running in what time frame at that moment.
Below is my data and a crude representation of what I have in mind.
ok.. I cannot load a picture from my pc here.. and I can't seem to I will try to paste something below the table. So, I will try to copy what I have in mind to another post.
[TABLE="width: 356"]
<tbody>[TR]
[TD]Project[/TD]
[TD]Event Cycle[/TD]
[TD]Event Type[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]pA[/TD]
[TD]201424[/TD]
[TD]b[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]pA[/TD]
[TD]201450[/TD]
[TD]b[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]pB[/TD]
[TD]201406-201437[/TD]
[TD]w[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]pC[/TD]
[TD]201439[/TD]
[TD]a[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]pD[/TD]
[TD]201403-201419[/TD]
[TD]w[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]pD[/TD]
[TD]201433[/TD]
[TD]x[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]pD[/TD]
[TD]201448[/TD]
[TD]x[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]pD[/TD]
[TD]201411[/TD]
[TD]x[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]pE[/TD]
[TD]201407[/TD]
[TD]x[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]pE[/TD]
[TD]201413[/TD]
[TD]x[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]pE[/TD]
[TD]201425[/TD]
[TD]x[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]pE[/TD]
[TD]201428[/TD]
[TD]x[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]pE[/TD]
[TD]201444[/TD]
[TD]x[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]pf[/TD]
[TD]201420-201436
[/TD]
[TD]m[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I have also used some very sweet and to the point macros - that I've copied from this forum. And learned much from them. So I thank the people here for contributing so much.
I am trying to create a chart from some data, and I would like to use VBA to do this, as the schedules change - people come and go, projects change their times sometimes. I would like a type of gantt chart.. but not really, because I don't care about showing progress. Just what project jobs are running when. I have jobs that run weekly, monthly, annually, biannually, and just kind of random because they depend on other factors. Gantt charts seem to be only able to show one event per row (from the ones I've seen created from Excel). I need to be able to show several events per row - for instance, a job that runs biannually will have 2 "events" positioned by date for the row for that project.
I would think this wouldn't be hard, but I have been going around in circles trying to find an example that I could use, and can't. I probably am not looking for the right type of chart.
My goal is to be able to take this data and create a chart with a VBA macro (because the data changes sometimes) where I can go right to the date I'm interested in (usually today or next week) and see what Jobs/projects are running in what time frame at that moment.
Below is my data and a crude representation of what I have in mind.
ok.. I cannot load a picture from my pc here.. and I can't seem to I will try to paste something below the table. So, I will try to copy what I have in mind to another post.
[TABLE="width: 356"]
<tbody>[TR]
[TD]Project[/TD]
[TD]Event Cycle[/TD]
[TD]Event Type[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]pA[/TD]
[TD]201424[/TD]
[TD]b[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]pA[/TD]
[TD]201450[/TD]
[TD]b[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]pB[/TD]
[TD]201406-201437[/TD]
[TD]w[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]pC[/TD]
[TD]201439[/TD]
[TD]a[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]pD[/TD]
[TD]201403-201419[/TD]
[TD]w[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]pD[/TD]
[TD]201433[/TD]
[TD]x[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]pD[/TD]
[TD]201448[/TD]
[TD]x[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]pD[/TD]
[TD]201411[/TD]
[TD]x[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]pE[/TD]
[TD]201407[/TD]
[TD]x[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]pE[/TD]
[TD]201413[/TD]
[TD]x[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]pE[/TD]
[TD]201425[/TD]
[TD]x[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]pE[/TD]
[TD]201428[/TD]
[TD]x[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]pE[/TD]
[TD]201444[/TD]
[TD]x[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]pf[/TD]
[TD]201420-201436
[/TD]
[TD]m[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]