+ Reply to Thread
Results 1 to 3 of 3

If DATE is part of LIST Then

  1. #1
    Registered User
    Join Date
    12-21-2020
    Location
    Belgium
    MS-Off Ver
    Windows 10 MS Office 365 Proplus
    Posts
    1

    If DATE is part of LIST Then

    Hi

    After reading, searching, breaking my head... I still couldn't find a solution for what seems a quite easy thing in the first place.
    I want to check if a cell has a certain colour. If so, it needs to cehck if the date linked to this cell is part of an array of bank holidays.
    If that's also true, a counter must count + 1.

    Unfortunately, I feel like missing a serious basic view on the problem, because it simply won't work.
    Is there anyone who can get me on the correct way please?

    The code I ended up after multiple if x = a comparisons is the following (checking if dateserial(1 JAN 2020) = dateserial(1 JAN 2020)).
    This gives no error, but the counter stays at 0. So at this moment it doens't make sense to cehck the whole array BankHolidays for the date 1 JAN 2020 to be part of it.

    Please Login or Register  to view this content.
    Many many many thanks for the one who can help me out here.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: If DATE is part of LIST Then

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: If DATE is part of LIST Then

    Hi and Welcome

    Maybe this will work for you

    Please Login or Register  to view this content.
    Happy with my advice? Click on the * reputation button below

+ 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. Replies: 5
    Last Post: 06-11-2018, 10:40 AM
  2. [SOLVED] Splitting date fails for a part of date column due to different cell format
    By Moriexcel in forum Excel Programming / VBA / Macros
    Replies: 32
    Last Post: 11-21-2014, 01:00 PM
  3. [SOLVED] Save As w Part a start date from F7 & end date 28 days later
    By ILoveStMartin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-11-2013, 11:21 PM
  4. Date and Time stap for Part In & Part Out
    By crystal2000a in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-25-2012, 10:36 AM
  5. Date entry where part of date is unknown
    By MBernard in forum Excel General
    Replies: 1
    Last Post: 04-20-2011, 10:29 AM
  6. [SOLVED] Finding the value from the list parts and insert extra part in the list
    By PRADEEPB270 in forum Excel General
    Replies: 3
    Last Post: 10-15-2010, 01:29 PM
  7. Part Code + part no combination for list box
    By suhas_shah in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-25-2006, 07:28 PM

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