+ Reply to Thread
Results 1 to 3 of 3

Activating only the last 30 days in Excel Calendar?

  1. #1
    Registered User
    Join Date
    09-10-2016
    Location
    New York, NY
    MS-Off Ver
    Excel 2016
    Posts
    2

    Activating only the last 30 days in Excel Calendar?

    I'm trying to create a data collection tool in a research study that will only provide the last 30 calendar days from the date it is opened. I'm using Excel Calendar, and I put the information for the date ranges in two cells on the side of the calendar, where the 30-day period start date is L4 (4,12) and end date is in L3 (3,12). I want to lock and black-out the calendar days that are not within that 30-day range to minimize confusion and error.

    I pasted what I wrote into VBA so far. I practiced with 4 consecutive calendar days (all in row 6), where 2 of them should have been blacked out because they were outside of the 30-day range.

    (Note: each calendar cell has two blank cells below it for data entry, which is why I want to lock and blackout 3 cells at a time for each calendar day.)

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

    I also tried this:

    Please Login or Register  to view this content.

    ------------------------

    None of this has worked. I'm not sure if I'm getting the DateValue Function wrong, or if I'm missing something else. I was hoping to eventually use a Loop function once I got this step figured out, but I haven't even gotten the first part down...

    Any help would be much appreciated!!!




    ----------------
    EDIT:
    This question has been cross-posted at the following URLs:
    http://www.mrexcel.com/forum/excel-q...-calendar.html
    http://database.ittoolbox.com/groups...lendar-5939485

    Initially, I did not understand that cross-posting within a short timespan is not recommended. I'm under a bit of a time crunch and wanted to figure this out as efficiently as possible. Now I understand that sharing the cross-post URLs is part of that process. Thanks!
    Last edited by yo1; 09-11-2016 at 03:16 PM. Reason: cross-posted

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

    Re: Activating only the last 30 days in Excel Calendar?

    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

    http://www.mrexcel.com/forum/excel-q...-calendar.html
    Ali


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


    Forum Rules (updated September 2018): please read them here.
    How to use the Power Query code you've been given: help here. More about the Power suite here.

  3. #3
    Registered User
    Join Date
    09-10-2016
    Location
    New York, NY
    MS-Off Ver
    Excel 2016
    Posts
    2

    Re: Activating only the last 30 days in Excel Calendar?

    Thanks for letting me know! I'm new to this process, and I appreciate the heads up. I edited my post accordingly.

+ 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] Calendar - 6 Working Days
    By PRINCEOFANDROMEDA in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 08-04-2016, 10:14 PM
  2. [SOLVED] How to determine 7 calendar days from a input date in another excel tab?
    By excelmr in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-11-2015, 12:55 PM
  3. [SOLVED] Change your Calendar work days and the start of your week Excel 2010
    By jason.hampton in forum Excel General
    Replies: 4
    Last Post: 08-08-2015, 09:58 AM
  4. Activating/De-Activating Comments or only if the Cell is Active.
    By e4excel in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 08-31-2011, 11:08 AM
  5. Calendar Days formula...
    By Dawn V in forum Excel General
    Replies: 8
    Last Post: 03-04-2010, 01:33 PM
  6. [SOLVED] Calendar value + 30, 60 or 90 days
    By hellZg8 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-04-2006, 03:10 AM
  7. How do the days in an Excel calendar template remain permanently?
    By Efficeint Word User in forum Excel General
    Replies: 1
    Last Post: 12-17-2005, 01:00 PM

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