Move multiple shapes wrt dates using VBA

Lazybookwarm

New Member
Joined
Feb 7, 2017
Messages
6
I got data as mentioned below in excel. All the activities are split in two different periods. For each such period I have to create a shape and place it according to its date and duration along the same row. e.g. in the below mentioned table for activity A, I will create two rectangular shapes and I want to place the first shape in the January-17 column (1st Jan to 5th Jan-17) and the second shape in the same January-17 column from 8th Jan-17 to 9th Jan-17. Both these shape shall resize themselves according to their assigned duration. Please let me know ways to do it using VBA or by other methods in excel. Thank you!

ActivityDur
(days)
StartFinishDur
(days)
StartFinishJan-17Feb-17Mar-17Apr-17May-17Jun-17
A5
1/1/175/1/1728/1/179/1/17
B66/1/1711/1/1742/4/175/4/17
C712/1/1718/1/1768/5/1713/5/17
D819/1/1726/1/1787/2/1714/2/17
E927/1/174/2/171019/2/1728/2/17

<tbody>
</tbody>
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.

Forum statistics

Threads
1,215,338
Messages
6,124,358
Members
449,155
Latest member
ravioli44

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