NewOrderFac33
Well-known Member
- Joined
- Sep 26, 2011
- Messages
- 1,283
- Office Version
- 2016
- 2010
- Platform
- Windows
Good afternoon,
I am trying to build a worksheet that mimics Microsoft Project - I have all the plotting based on entries in various cells sorted out, but need to be able to create a dependency. So, I want to be able to click on the Start Date cell for the current task then, hold down [Control] (to create a non-contiguous selection), click on the Start Date cell of the current task and somehow trap the two values to make the End Date cell = the value in the Start Date cell +1 day (or 3 if the End Date is a Friday, to move it on to Monday)
I have figured out how to do this assuming that I only want to create a Start date based on an End Date in the previous row, but I need to be able to do it to, say, create a start date in Row 10, based on an End Date in Row 5.
So, my code would allow me to click (say) B10 for my Current Task Start Date, hold down [Control], click D5 for my previous Task End Date, then do something to populate B10 with the value contained in D5, plus the appropriate number of additional days (1 if D5 is Monday-Thursday or 3 if D5 is Friday) - I know how to do this using the WeekDay function.
Can anyone help me figure out how to trap the values in the two selected cells to two different variables?
Thanks in advance!
I am trying to build a worksheet that mimics Microsoft Project - I have all the plotting based on entries in various cells sorted out, but need to be able to create a dependency. So, I want to be able to click on the Start Date cell for the current task then, hold down [Control] (to create a non-contiguous selection), click on the Start Date cell of the current task and somehow trap the two values to make the End Date cell = the value in the Start Date cell +1 day (or 3 if the End Date is a Friday, to move it on to Monday)
I have figured out how to do this assuming that I only want to create a Start date based on an End Date in the previous row, but I need to be able to do it to, say, create a start date in Row 10, based on an End Date in Row 5.
So, my code would allow me to click (say) B10 for my Current Task Start Date, hold down [Control], click D5 for my previous Task End Date, then do something to populate B10 with the value contained in D5, plus the appropriate number of additional days (1 if D5 is Monday-Thursday or 3 if D5 is Friday) - I know how to do this using the WeekDay function.
Can anyone help me figure out how to trap the values in the two selected cells to two different variables?
Thanks in advance!