+ Reply to Thread
Results 1 to 9 of 9

VBA Command button enabled if current date matches with range of dates

  1. #1
    Forum Contributor
    Join Date
    02-19-2013
    Location
    UK
    MS-Off Ver
    Excel 2019
    Posts
    677

    VBA Command button enabled if current date matches with range of dates

    Hi
    I am trying to find out if command button is enabled on specific dates mentioned in range.
    I have attached a sample book.
    I could not figure out how to do it.
    I have a macro which enables it if specific cells are filled in.
    Any help please
    Kind regards
    KK1234

    Codes
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    02-19-2013
    Location
    UK
    MS-Off Ver
    Excel 2019
    Posts
    677

    Re: VBA Command button enabled if current date matches with range of dates

    sample Book attached Now
    Attached Files Attached Files

  3. #3
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: VBA Command button enabled if current date matches with range of dates

    Hi KK1234,
    try it
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    02-19-2013
    Location
    UK
    MS-Off Ver
    Excel 2019
    Posts
    677

    Re: VBA Command button enabled if current date matches with range of dates

    Hi nilem,
    Thanks for your prompt reply.
    The line highlighted in debug prompt.
    I cant figure out why.
    Can you help please?
    Thanks again
    Kind regards
    Please Login or Register  to view this content.

  5. #5
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: VBA Command button enabled if current date matches with range of dates

    please try again
    Please Login or Register  to view this content.
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    02-19-2013
    Location
    UK
    MS-Off Ver
    Excel 2019
    Posts
    677

    Re: VBA Command button enabled if current date matches with range of dates

    Hi nilem,
    Thanks again.
    However the command button still is active with any date.
    Apology

  7. #7
    Forum Contributor
    Join Date
    02-19-2013
    Location
    UK
    MS-Off Ver
    Excel 2019
    Posts
    677

    Re: VBA Command button enabled if current date matches with range of dates

    Hi nilem,
    I am trying as follows:
    Any help please
    Please Login or Register  to view this content.

  8. #8
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: VBA Command button enabled if current date matches with range of dates

    again,
    command button is not available
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    02-19-2013
    Location
    UK
    MS-Off Ver
    Excel 2019
    Posts
    677

    Re: VBA Command button enabled if current date matches with range of dates

    Wonderful nilem.
    I was making a mistake by linking it with D6
    Apology. Took a while for me to understand your code.
    Its great work.
    Many thanks again.
    I have clicked * to express my gratitude.
    I am closing this thread as solved.
    Kind regards
    KK1234

+ 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. Command button to get current date and time
    By siobeh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-02-2013, 11:39 PM
  2. [SOLVED] A cell of Date matches with a range of DATES
    By soundworks999 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-09-2013, 09:57 PM
  3. command button 1 (save as pdf named the current time and date . then send by email
    By guitarist00 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-02-2013, 09:43 AM
  4. Command button - to copy active sheet and not save current workbook
    By vjboaz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-22-2008, 05:23 PM
  5. Command button to email the current spreadsheet
    By matpj in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-13-2007, 05:05 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