+ Reply to Thread
Results 1 to 4 of 4

Dateadd issue when adding weeks to a date

  1. #1
    Forum Contributor
    Join Date
    12-14-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    106

    Dateadd issue when adding weeks to a date

    Hi. I have attached a basic worksheet with a userform on it.

    In the first textbox I enter a date and it is formatted as dd/mm/yyyy

    THe next text box has number of weeks entered in it.

    THe final textbox populates the date that is X weeks later then the first text box.

    My problem is the last textbox formatting is going crazy. sometimes the date is correct but if I add a week number that takes the date into the following month the formatting changes to MM/DD/YYYY.

    Alternatively the third textbox is always in MM/DD/YYYY or jumps between the two. Driving me mad. I have checked my comp has the correct date format for UK.

    Any help would be massively appreciated. COde below for your easy review

    Please Login or Register  to view this content.
    MAny thanks
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor xlbiznes's Avatar
    Join Date
    02-22-2013
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    1,223

    Re: Dateadd issue when adding weeks to a date

    Hi @chrisjames25,

    Just change the following line :

    Please Login or Register  to view this content.
    To

    Please Login or Register  to view this content.
    Happy Computing ,

    Xlbiznes.

    To show your appreciation please click *

  3. #3
    Forum Contributor
    Join Date
    12-14-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    106

    Re: Dateadd issue when adding weeks to a date

    MAny thanks that worked perfectly. Much appreciated. Rep added.

  4. #4
    Valued Forum Contributor xlbiznes's Avatar
    Join Date
    02-22-2013
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    1,223

    Re: Dateadd issue when adding weeks to a date

    You are welcome.

    Glad, i could help.

+ 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. Adding one TextBox with weeks to text box with date to give final Date
    By davidloops in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-21-2013, 08:25 PM
  2. Adding weeks to a set weekday date.
    By stovnoge in forum Excel General
    Replies: 1
    Last Post: 10-12-2011, 04:10 AM
  3. [SOLVED] DateAdd
    By johnboy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-17-2006, 06:10 PM
  4. issue with adding weeks to the date
    By matthewwookie in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-06-2005, 01:05 PM
  5. [SOLVED] Help with VBA (or VB) DateAdd, WORDAY functions, date format
    By Kind writer/user/programmer in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-08-2005, 07:07 AM

Tags for this Thread

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