Closed Thread
Results 1 to 9 of 9

defining a years length(start and end dates)

Hybrid View

  1. #1
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Please read forum rules below and then wrap your code as per rule 5

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  2. #2
    Registered User
    Join Date
    01-11-2008
    Posts
    16

    wrap code

    sorry dont know how to do that.i have zipped the whole program but can't paste it onto the forum for help

  3. #3
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    at the start of the code enter [code] and at the end enter [?code] replace the ? symbol with /

    or try reading the rules and click on link on how to add code tags

    Example of how wrapped code should look like !!
    VBA Noob

  4. #4
    Registered User
    Join Date
    01-11-2008
    Posts
    16

    here is the zipped program

    here is the zipped program

    problem1---- when date 24/12/07-6/1/08 the calculation(personal-full calculate) comes out correct i.e.
    6 days at rate 185.80 and 6 days at 197.30. showing the end of 2007 is 20/12/07 and the start of 2008 is 31/12/07.
    but if you enter just 24/12/07- 31/12/07 the result show a calulation of 7 days at 185.80 instead of 6 days at 185.0 and 1 day at 197.80.

    problem 2 ----- tax is calulated if the number of days is over 36. but since the tax year ends on the 31/12/07 (unlike the 30/12/07 whe the new pay rates start) the way i have the calculator now will calculate the end of the tax year as 31/12/07 if the date ends on the 31/12/07 but wont calculate 31/12/07 as the last date of 2007 if 2008 dates are included too.

    cheers for any help

    to zip the program i could only get it down to 121mb which is over the forum limit so had to copy the code into .txt file called mod function and macExceptional hope that this doesnt ruin the program

    ronan
    Attached Files Attached Files

Closed Thread

Thread Information

Users Browsing this Thread

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

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