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

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.

Forum statistics

Threads
1,216,028
Messages
6,128,392
Members
449,445
Latest member
JJFabEngineering

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