+ Reply to Thread
Results 1 to 11 of 11

Archive anything older than 90 days and if actioned = Yes

  1. #1
    Registered User
    Join Date
    07-08-2012
    Location
    Melbourne Australia
    MS-Off Ver
    Excel 2003
    Posts
    79

    Archive anything older than 90 days and if actioned = Yes

    Hello,

    Was reading up on this and i'm thinking of merging but the i saw something about advanced filters and thought i'de turn to the boards!

    Corporate Action History Master.xlsx

    What i was hoping was that automatically when "Response deadline date" [G] is past todays date by 90 and "Actioned" [H] = "Yes" that the entire row be cut across to Archive.

    If had some success finding code to "Archive" based on a text value ("YES") but nothing on date/time...

    Any thoughts please?

    Links to any known threads also welcome please

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

    Re: Archive anything older than 90 days and if actioned = Yes

    Hi

    this may get you going

    Please Login or Register  to view this content.
    rylo

  3. #3
    Registered User
    Join Date
    07-08-2012
    Location
    Melbourne Australia
    MS-Off Ver
    Excel 2003
    Posts
    79

    Re: Archive anything older than 90 days and if actioned = Yes

    hmmm

    Run-time error '13'
    Type mismatch

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

    Re: Archive anything older than 90 days and if actioned = Yes

    Hi

    How about updating your example file to show a data sheet with some representative data so we can see what you are working with.

    rylo

  5. #5
    Registered User
    Join Date
    07-08-2012
    Location
    Melbourne Australia
    MS-Off Ver
    Excel 2003
    Posts
    79

    Re: Archive anything older than 90 days and if actioned = Yes

    Corporate Action History Master.xlsx

    Rylo updated as suggested

    thanks for helping

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

    Re: Archive anything older than 90 days and if actioned = Yes

    Hi

    I changed the 2 to 7 in the first line of the code to match your data situation, and the code ran for me with no errors in the example file from #5

    Please Login or Register  to view this content.
    Try that and see how it goes.

    rylo

  7. #7
    Registered User
    Join Date
    07-08-2012
    Location
    Melbourne Australia
    MS-Off Ver
    Excel 2003
    Posts
    79

    Re: Archive anything older than 90 days and if actioned = Yes

    Works great in my example thankyou!

    still getting that error in my Master Spreadsheet, so i think im just going to make a new one

    thanks again reped

  8. #8
    Registered User
    Join Date
    07-08-2012
    Location
    Melbourne Australia
    MS-Off Ver
    Excel 2003
    Posts
    79

    Re: Archive anything older than 90 days and if actioned = Yes

    For future reference for anybody

    Run-time error '13'
    Type mismatch

    This occured when there were blanks within the "Date" column

  9. #9
    Registered User
    Join Date
    07-08-2012
    Location
    Melbourne Australia
    MS-Off Ver
    Excel 2003
    Posts
    79

    Re: Archive anything older than 90 days and if actioned = Yes

    Any thoughts please on how to skip blanks?

    I had a crack and failed!

    Please Login or Register  to view this content.

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

    Re: Archive anything older than 90 days and if actioned = Yes

    Hi

    How about adding an example file that exactly matches your real situation (some blanks, some filled etc). That way we have something concrete to work on.

    rylo

  11. #11
    Valued Forum Contributor
    Join Date
    11-15-2008
    Location
    ph
    MS-Off Ver
    2007/2010/2016
    Posts
    479

    Re: Archive anything older than 90 days and if actioned = Yes

    Hi -

    Another thing to look at in Type mismatch error is if the date column is not actually a date value.

    So, add another test if isdate

    Regards,
    event

+ 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