+ Reply to Thread
Results 1 to 6 of 6

VBA to display expiry dates

  1. #1
    Registered User
    Join Date
    07-10-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2010
    Posts
    31

    VBA to display expiry dates

    Hi,
    I'm hoping someone here can help, I have a register of items that have a testing due date, I would like if the user could press the PATTestcmd button on the Reports tab that would refresh a testing due date list directly underneath it. The list items refer to2 columns on the Register tab, column A which is the asset number & column V which is the due date. The thing is there would be a lot of blanks & it would be great if it could get sorted by date due, there will be overdue items also so if the order could go overdue, then due, a list of the next 30 items to display would be great.
    I've attached the worksheet there, please come back to me if you have any questions about it. Any help would be so appreciated
    Thanks

    EquipmentRegisterEC.xlsm

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: VBA to display expiry dates

    Hi EimearC

    Assign this Code to the Button Click Event...
    Please Login or Register  to view this content.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Registered User
    Join Date
    07-10-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2010
    Posts
    31

    Re: VBA to display expiry dates

    Hi John,

    Thank you so much for your help, it looks fantastic.
    The only thing is that it relates to column V on the register tab where I need it to pull the dates from column W, I just reread my first post & I had marked that wrong, my apologies.
    I did an attempt to change your code from where I saw Field & Columns 22 & changed them to 23 but now when I run the report all the dates on the report tab are 01/Jan/1900.
    Would you be able to show/highlight where to change the date due column please?
    Thank you so much.
    Eimear

  4. #4
    Registered User
    Join Date
    07-10-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2010
    Posts
    31

    Re: VBA to display expiry dates

    Hi John,

    Actually I can see the vba is copying the formula that I have in Column W across, not a paste values, I believe a paste as values will do the trick if you are able to write that in?

    Many thanks,
    Eimear

  5. #5
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: VBA to display expiry dates

    Hi Eimear

    Making the indicated changes should do it...

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    07-10-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2010
    Posts
    31

    Re: VBA to display expiry dates

    You're a genius! Thank you so much, I was just googling how to do a paste value
    That's absolutely brilliant.

+ 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. [SOLVED] Contract Expiry Dates
    By nwarren in forum Excel Programming / VBA / Macros
    Replies: 37
    Last Post: 05-21-2015, 01:39 PM
  2. expiry dates
    By lucyt in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-12-2014, 09:32 AM
  3. If statement for expiry dates
    By mfairhurst1 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-22-2013, 06:19 PM
  4. Workday Formula-Notice dates and Expiry dates
    By lamjoey in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 07-24-2011, 06:52 AM
  5. Conditional Format Expiry Dates
    By Paul Cooke in forum Excel General
    Replies: 2
    Last Post: 03-01-2010, 07:26 AM
  6. Calculating Expiry Dates
    By shinyell in forum Excel General
    Replies: 3
    Last Post: 10-19-2009, 03:38 AM
  7. Flag expiry dates
    By Viper200 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-12-2008, 08:14 AM

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