+ Reply to Thread
Results 1 to 5 of 5

VBA to add workdays to datetxtbox

  1. #1
    Registered User
    Join Date
    02-17-2014
    Location
    manchester
    MS-Off Ver
    Excel 2003
    Posts
    6

    VBA to add workdays to datetxtbox

    Hi,

    I have a userform that captures dates and records them to another excel workbook so we can analyse the data. I have one last part to finalise; When a date is added to the "daterecievedtxtbox" I would like a formula to be offset to the end of the spreadsheet, that will take this date and add 3 working days to it. Then I can add in some formulas later to flag them when the date passes the 3 working days.

    At the moment I have this:

    Please Login or Register  to view this content.
    which adds 3 days to this txtbox and writes it to the sheet that I have defined. I would like to know if there is a function that I can use to add 3 WORKING days to this, excluding saturday and sunday. If it isnt this easy I will post the rest of my code so its easier for you to understand

  2. #2
    Registered User
    Join Date
    02-17-2014
    Location
    manchester
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: VBA to add workdays to datetxtbox

    Thanks in Advance

  3. #3
    Registered User
    Join Date
    02-17-2014
    Location
    manchester
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: VBA to add workdays to datetxtbox

    or if there is a way to add a formula that will know which row it has added to and increment it? so I could add

    Please Login or Register  to view this content.
    but If I put in "F4" for example, it will take F4 each time, is there a way that excel will know what row it is being wrwitten to?

  4. #4
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: VBA to add workdays to datetxtbox

    Posting an example workbook would aid in a solution, or at the least the code in its entirety.
    Thanks,
    Solus


    Please remember the following:

    1. Use [code] code tags [/code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    Highlight the code in your post and press the # button in the toolbar.
    2. Show appreciation to those who have helped you by clicking below their posts.
    3. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

    "Slow is smooth, smooth is fast."

  5. #5
    Registered User
    Join Date
    02-17-2014
    Location
    manchester
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: VBA to add workdays to datetxtbox

    Complaints Logger.xls

    I have attached the workbook, I would like to be able to offset a cell that adds in 3 working days to the daterecievedtxtbox, and 15 working days to the dateacknowtxtbox please....

    or another workaround to this???


    AWESOME-O

+ 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. Workdays Sun-Thu
    By safisam in forum Excel General
    Replies: 2
    Last Post: 06-16-2008, 07:03 AM
  2. Workdays
    By Kjaer in forum Excel General
    Replies: 2
    Last Post: 11-16-2007, 09:18 AM
  3. IF workdays
    By XLS-EXCEL in forum Excel General
    Replies: 6
    Last Post: 09-26-2007, 12:06 PM
  4. [SOLVED] Re: workdays
    By Jimmy Joseph in forum Excel General
    Replies: 0
    Last Post: 05-29-2006, 06:55 AM
  5. Workdays
    By Alpur in forum Excel General
    Replies: 3
    Last Post: 11-03-2005, 12:10 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