+ Reply to Thread
Results 1 to 7 of 7

Help with Find when dates exceed 6 digits

  1. #1
    Forum Contributor
    Join Date
    05-28-2016
    Location
    Australia
    MS-Off Ver
    2013
    Posts
    119

    Help with Find when dates exceed 6 digits

    Looking for support for the Meeting Scheduler found on Youtube July 2018. https://www.youtube.com/watch?v=P0ro...dex=29&t=1960s (Yes I have contacted the creator and waiting to hear back)
    When working in Oct-Dec, no meetings are loaded back into the Calendar from 10th of each month. I suspect it has something to do with the increase in digits as Oct/Nov/Dec 10th are the first dates of any month in the year to have 6 digits.
    I narrowed down the VBA code issue to the LoadMonth Macro (Load Meetings Into Month) where FoundMonthDates = FindMonthDates.Find(MtgDate, , xlValues, xlWhole) suddenly become "Nothing" from the 10th Oct. As the loop begins, it will correctly identify the Filter Rows and Last Filter Rows, and correctly identifies the MtgDate it is looking for, however, it returns Nothing for the 10th onwards.
    Note I made changes to some of the ranges to accommodate changes I made to the calendar to suit my puro=pose. All other months load every meeting listed without issues.
    How can this be corrected to allow for the meetings to be loaded correctly?

    Please Login or Register  to view this content.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Help with Find when dates exceed 6 digits

    There is not enough context here. In particular, I am not sure how a date has 6 digits. Dates are stored in Excel as integers. 1 Jan 2021 is 44197 and 10 Oct 2021 is 44479. If you use Find sometimes you have to match the What parameter to the format used in the sheet.

    For us to troubleshoot this, please attach your file. See yellow banner at the top of the page.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Contributor
    Join Date
    05-28-2016
    Location
    Australia
    MS-Off Ver
    2013
    Posts
    119

    Re: Help with Find when dates exceed 6 digits

    I provided a link to the video which has a link to the workbook. Mine has been added to so much I cannot de-identify it without considerable issue.
    I understand how dates are stored in Excel but when a date is displayed as 9/10/21 in the workbook, for example, it is visible and processed as expected. However, whenever a date is displayed with 6 digits ie. 10/10/21 or even 09/10/21 it breaks.

    This is broken in the original file so I know I have not altered anything which could have broken it.

    I gave the code I narrowed the issue down to and would like to know what limitations the FIND command has in VBA and how this is impacted when a two-digit day of a two-digit month is referenced. No matter how I alter the format of dates throughout the workbook of the VBA code it does not like to process them. The VBA code correctly identifies the date it is searching for, but cannot find it in the range FindMonthDates despite it being there.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Help with Find when dates exceed 6 digits

    Don't expect members to follow links to find workbooks that you want them to look at. Go and get the workbook at that location and attach it here yourself, please.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Forum Contributor
    Join Date
    05-28-2016
    Location
    Australia
    MS-Off Ver
    2013
    Posts
    119

    Re: Help with Find when dates exceed 6 digits

    Ali, I am still waiting for permission from the original creator to post his work online. I feel strongly about Intellectual Property.
    Thank you
    While waiting for permission I would simply like to know what the VBA Find function is limiting the dates and what can be done to correct this.
    Thank you

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Help with Find when dates exceed 6 digits

    Understood. Let's hope that someone can help you from the fragments you're able to share.

    If you hear back from the file's creator first, don't forget to share the solution here. Thanks.

  7. #7
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Help with Find when dates exceed 6 digits

    Quote Originally Posted by Crawfy View Post
    I provided a link to the video which has a link to the workbook
    The first thing I did was go to the video link but there is no link to the workbook, just his web site, and I cannot scour his website to see if the file is available there.

    If this template is freely available, and you did not have to pay for it, then there is no IP problem if you at least post a link directly to the same source where you got it yourself.

    I am thinking that the dates in the file use a Custom format. What is the custom format string? You can try using something like this:

    Please Login or Register  to view this content.
    However, this is an educated guess and can't be confirmed without the file.

+ 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. Count cells that exceed X else sum until exceed X and count forward
    By kelly11 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-27-2020, 04:54 PM
  2. Convert first two digits on dates on certain circumstances
    By flupsie in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-14-2017, 12:35 AM
  3. Deleting Rows when Dates exceed current date
    By lch93lily in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-05-2014, 01:40 PM
  4. [SOLVED] Find Max of last Four Digits
    By SoothSailor in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-12-2014, 01:18 PM
  5. [SOLVED] Find the first time a threshold value is exceed in an unsorted range
    By NotMyName in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-11-2013, 05:02 AM
  6. Converting Dates to 8 digits
    By jermsalerms in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 01-19-2006, 10:10 PM
  7. [SOLVED] 2.3345 I want to find out what the last 2 digits are, i.e. 45
    By Marcus in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-16-2005, 11:50 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