+ Reply to Thread
Results 1 to 7 of 7

loop through selectioin changing day in date to last day in the month

  1. #1
    Registered User
    Join Date
    06-27-2008
    Location
    brisbane
    Posts
    23

    loop through selectioin changing day in date to last day in the month

    I need some help with code that will loop through a selection containing dates changing the day of the date to the last day of the month

    thanks

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    Try
    Please Login or Register  to view this content.
    If you don't have the EOMONTH function, then install the analysis toolpak addin.


    rylo

  3. #3
    Registered User
    Join Date
    06-27-2008
    Location
    brisbane
    Posts
    23

    Code didn't work

    I tried the code but I don't have EOMONTH function and am unable to install the pac you said is there another way?

  4. #4
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    HI

    Try this one

    Please Login or Register  to view this content.
    rylo

  5. #5
    Registered User
    Join Date
    06-27-2008
    Location
    brisbane
    Posts
    23

    How do I set it to a set range

    Thankyou that code worked but i was unable to set the range I tried to get it to change the dates in a range (Z9:Z22) but it continued to change the date out side this range. How do I get it to only do this range?

  6. #6
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    Here goes

    This will do it for the fixed range you nominated.
    Please Login or Register  to view this content.
    This will do it for a variable range starting in Z9, and going to the last used cell in column Z
    Please Login or Register  to view this content.

    rylo

  7. #7
    Registered User
    Join Date
    06-27-2008
    Location
    brisbane
    Posts
    23

    Thank you

    that worked,

    thank you

+ Reply to 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