+ Reply to Thread
Results 1 to 2 of 2

VBA for variable date

  1. #1
    Registered User
    Join Date
    10-06-2015
    Location
    Albany
    MS-Off Ver
    2007
    Posts
    18

    VBA for variable date

    Setup:

    Title of task Projected Start Date Block per day Projected Duration in Hours Projected days of work
    A1 Sweep floor B1 10/19/2015 C1 .05 / day D1 18.25 E1 4
    A5 Cut Grass B5 10/23/2015 C5 .05 / day D5 16.00 E5 4

    Obviously sweeping the floor can take more or less time than 18.25 hours, so i am looking for a code that will make

    A1 Sweep Floor B1 - 10/19/2015
    B2 - 10/20/2015
    B3 - 10/21/2015
    B4 - 10/22/2015
    B1 Cut Grass B5 - 10/23/2015
    B6 - 10/26/2015 - Taking into account no work on the weekend.
    B7 - 10/27/2015 .... etc

    but if it takes longer to sweep the floor, say 6 days, i'd like the code to account for the weekend and show

    A1 Sweep Floor B1 - 10/19/2015
    B2 - 10/20/2015
    B3 - 10/21/2015
    B4 - 10/22/2015
    B5 - 10/26/2015
    B6 - 10/27/2015
    B1 Cut Grass B7 - 10/28/2015
    B8 - 10/28/2015 .... etc


    Any help in making this automation would be greatly appreciated.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,661

    Re: VBA for variable date

    Welcome to the Forum, unfortunately:

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.


    http://www.excelforum.com/excel-gene...able-date.html



    Thread Closed.
    Ben Van Johnson

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] If Date and other Variable
    By alexiwcd in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-10-2015, 01:28 PM
  2. put different languages of date text into date variable
    By JasperD in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-27-2015, 03:25 AM
  3. Replies: 1
    Last Post: 12-31-2014, 08:39 AM
  4. change date format of date variable to something like 3/17/14
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 09-03-2014, 11:39 AM
  5. Copy column variable number of times between start date and end date
    By gbisk in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-12-2013, 07:57 AM
  6. [SOLVED] variable date not working with date add?
    By Grimbarian in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-26-2013, 03:59 PM
  7. Replies: 2
    Last Post: 09-09-2011, 12:30 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1