Richard JIBS
New Member
- Joined
- Feb 3, 2015
- Messages
- 13
Hello,
I have a workbook that contains logistics plans for several events. Each event has its own worksheet.
I would like all data from selected event logistics plan copied into an ALL DATA worksheet.
The workbook is structured as follows with these worksheets:
ACTIVE EVENTS (contains a list of event codes, which are also the names of the worksheets for each of the events. The number of events will change throughout the year.)
[TABLE="width: 500"]
<tbody>[TR]
[TD]Event codes[/TD]
[/TR]
[TR]
[TD]EV18-AAA[/TD]
[/TR]
[TR]
[TD]EV18-BBB[/TD]
[/TR]
[TR]
[TD]EV19-DDD[/TD]
[/TR]
</tbody>[/TABLE]
EV18-AAA (for example, contains the logistics plan for the EV18-BBB event)
[TABLE="width: 500"]
<tbody>[TR]
[TD]Who [/TD]
[TD]Days before[/TD]
[TD]Task [/TD]
[TD]Status[/TD]
[/TR]
[TR]
[TD]Damien[/TD]
[TD]200[/TD]
[TD]Invite speakers[/TD]
[TD]Complete[/TD]
[/TR]
[TR]
[TD]Chris[/TD]
[TD]50[/TD]
[TD]Meet sponsors[/TD]
[TD]In progress[/TD]
[/TR]
[TR]
[TD]Damien[/TD]
[TD]12[/TD]
[TD]Book taxis[/TD]
[TD]To do[/TD]
[/TR]
</tbody>[/TABLE]
ALL DATA (this is what this should look like)
[TABLE="width: 600"]
<tbody>[TR]
[TD]Event code[/TD]
[TD]Who [/TD]
[TD]Days before[/TD]
[TD]Task [/TD]
[TD]Status[/TD]
[/TR]
[TR]
[TD]EV18-AAA[/TD]
[TD]Damien[/TD]
[TD]200[/TD]
[TD]Invite speakers[/TD]
[TD]Complete[/TD]
[/TR]
[TR]
[TD]EV18-AAA[/TD]
[TD]Chris[/TD]
[TD]50[/TD]
[TD]Meet sponsors[/TD]
[TD]In progress[/TD]
[/TR]
[TR]
[TD]EV18-AAA[/TD]
[TD]Damien[/TD]
[TD]12[/TD]
[TD]Book taxis[/TD]
[TD]To do[/TD]
[/TR]
[TR]
[TD]EV18-BBB[/TD]
[TD]Damien[/TD]
[TD]150[/TD]
[TD]Invite speakers[/TD]
[TD]Complete[/TD]
[/TR]
[TR]
[TD]EV19-DDD[/TD]
[TD]Chris[/TD]
[TD]100[/TD]
[TD]Visit venues[/TD]
[TD]In progress[/TD]
[/TR]
[TR]
[TD]EV19-DDD[/TD]
[TD]Damien[/TD]
[TD]80[/TD]
[TD]Send emarketing[/TD]
[TD]To do[/TD]
[/TR]
[TR]
[TD]EV19-DDD[/TD]
[TD]Chris[/TD]
[TD]40[/TD]
[TD]Ask Jo to chair[/TD]
[TD]In progress[/TD]
[/TR]
[TR]
[TD]EV19-DDD[/TD]
[TD]Damien[/TD]
[TD]12[/TD]
[TD]Book taxis[/TD]
[TD]To do[/TD]
[/TR]
</tbody>[/TABLE]
Could I have some help please with the VBA code to achieve this?
Note that there might be other event worksheets in the file, but ALL DATA should only pull through data from the worksheet names listed in ACTIVE EVENTS. There will be different numbers of rows in the logistics plans depending on the event. The data will start in the same row and column in each logistics worksheet (Cell A6). ALL DATA should also have a column that indicates which worksheet the logistics data has been pulled from (Column A in example above).
Thanks for your help.
Richard
I have a workbook that contains logistics plans for several events. Each event has its own worksheet.
I would like all data from selected event logistics plan copied into an ALL DATA worksheet.
The workbook is structured as follows with these worksheets:
ACTIVE EVENTS (contains a list of event codes, which are also the names of the worksheets for each of the events. The number of events will change throughout the year.)
[TABLE="width: 500"]
<tbody>[TR]
[TD]Event codes[/TD]
[/TR]
[TR]
[TD]EV18-AAA[/TD]
[/TR]
[TR]
[TD]EV18-BBB[/TD]
[/TR]
[TR]
[TD]EV19-DDD[/TD]
[/TR]
</tbody>[/TABLE]
EV18-AAA (for example, contains the logistics plan for the EV18-BBB event)
[TABLE="width: 500"]
<tbody>[TR]
[TD]Who [/TD]
[TD]Days before[/TD]
[TD]Task [/TD]
[TD]Status[/TD]
[/TR]
[TR]
[TD]Damien[/TD]
[TD]200[/TD]
[TD]Invite speakers[/TD]
[TD]Complete[/TD]
[/TR]
[TR]
[TD]Chris[/TD]
[TD]50[/TD]
[TD]Meet sponsors[/TD]
[TD]In progress[/TD]
[/TR]
[TR]
[TD]Damien[/TD]
[TD]12[/TD]
[TD]Book taxis[/TD]
[TD]To do[/TD]
[/TR]
</tbody>[/TABLE]
ALL DATA (this is what this should look like)
[TABLE="width: 600"]
<tbody>[TR]
[TD]Event code[/TD]
[TD]Who [/TD]
[TD]Days before[/TD]
[TD]Task [/TD]
[TD]Status[/TD]
[/TR]
[TR]
[TD]EV18-AAA[/TD]
[TD]Damien[/TD]
[TD]200[/TD]
[TD]Invite speakers[/TD]
[TD]Complete[/TD]
[/TR]
[TR]
[TD]EV18-AAA[/TD]
[TD]Chris[/TD]
[TD]50[/TD]
[TD]Meet sponsors[/TD]
[TD]In progress[/TD]
[/TR]
[TR]
[TD]EV18-AAA[/TD]
[TD]Damien[/TD]
[TD]12[/TD]
[TD]Book taxis[/TD]
[TD]To do[/TD]
[/TR]
[TR]
[TD]EV18-BBB[/TD]
[TD]Damien[/TD]
[TD]150[/TD]
[TD]Invite speakers[/TD]
[TD]Complete[/TD]
[/TR]
[TR]
[TD]EV19-DDD[/TD]
[TD]Chris[/TD]
[TD]100[/TD]
[TD]Visit venues[/TD]
[TD]In progress[/TD]
[/TR]
[TR]
[TD]EV19-DDD[/TD]
[TD]Damien[/TD]
[TD]80[/TD]
[TD]Send emarketing[/TD]
[TD]To do[/TD]
[/TR]
[TR]
[TD]EV19-DDD[/TD]
[TD]Chris[/TD]
[TD]40[/TD]
[TD]Ask Jo to chair[/TD]
[TD]In progress[/TD]
[/TR]
[TR]
[TD]EV19-DDD[/TD]
[TD]Damien[/TD]
[TD]12[/TD]
[TD]Book taxis[/TD]
[TD]To do[/TD]
[/TR]
</tbody>[/TABLE]
Could I have some help please with the VBA code to achieve this?
Note that there might be other event worksheets in the file, but ALL DATA should only pull through data from the worksheet names listed in ACTIVE EVENTS. There will be different numbers of rows in the logistics plans depending on the event. The data will start in the same row and column in each logistics worksheet (Cell A6). ALL DATA should also have a column that indicates which worksheet the logistics data has been pulled from (Column A in example above).
Thanks for your help.
Richard