+ Reply to Thread
Results 1 to 10 of 10

Spell check certain columns or range based on todays date

  1. #1
    Registered User
    Join Date
    06-13-2018
    Location
    Cumbria, England
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2303 Build 16.0.16227.20202) 32-bit
    Posts
    24

    Spell check certain columns or range based on todays date

    Hi,

    I'm brand new to VBA so bare with me!

    I have a protected sheet that i would like to spell check. The sheet is data and comments in columns under dates and is completes every day.

    What i would like is a spell check button which checks the last 5 columns of data. (or check today's date columns and the last 4 days)

    Is this possible? I know you can set up a spell check but I don't know about configuring it around a date.

    Thanks!

  2. #2
    Forum Expert
    Join Date
    04-01-2013
    Location
    East Auckland
    MS-Off Ver
    Excel 365
    Posts
    1,343

    Re: Spell check certain columns or range based on todays date

    try this
    if you have a password obviously you can add it to that first line. like "ActiveSheet.Protect "The Password", UserInterfaceOnly:=True"

    Please Login or Register  to view this content.
    Last edited by scottiex; 06-14-2018 at 07:12 PM.
    If you want something done right... find a forum and ask an online expert.

    Time flies like an arrow. Fruit flies like a banana.

  3. #3
    Registered User
    Join Date
    06-13-2018
    Location
    Cumbria, England
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2303 Build 16.0.16227.20202) 32-bit
    Posts
    24

    Re: Spell check certain columns or range based on todays date

    Thanks for the reply, I'll try that when I get time.

    Would you mind explaining what this is doing please? I'm not used to code!

  4. #4
    Forum Expert
    Join Date
    04-01-2013
    Location
    East Auckland
    MS-Off Ver
    Excel 365
    Posts
    1,343

    Re: Spell check certain columns or range based on todays date

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    06-13-2018
    Location
    Cumbria, England
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2303 Build 16.0.16227.20202) 32-bit
    Posts
    24

    Re: Spell check certain columns or range based on todays date

    This didn't work and I think I know why.

    I have the dates already pre-populated, so the macro will always find December 31st. I tried typing in the end 5 dates and it worked for them.

    Is there any way for the spell check to work from a dated based in a cell on a different sheet?

  6. #6
    Forum Expert
    Join Date
    04-01-2013
    Location
    East Auckland
    MS-Off Ver
    Excel 365
    Posts
    1,343

    Re: Spell check certain columns or range based on todays date

    I think you need to upload a sample because the exact location and format of the dates matters.

    or maybe you can just replace the * with the date that you want to find.
    Last edited by scottiex; 06-14-2018 at 09:45 PM.

  7. #7
    Registered User
    Join Date
    06-13-2018
    Location
    Cumbria, England
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2303 Build 16.0.16227.20202) 32-bit
    Posts
    24

    Re: Spell check certain columns or range based on todays date

    I dont have the file just now, can I replace the * with a cell reference i.e 'sheet1'!A1

  8. #8
    Registered User
    Join Date
    06-13-2018
    Location
    Cumbria, England
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2303 Build 16.0.16227.20202) 32-bit
    Posts
    24

    Re: Spell check certain columns or range based on todays date

    or can it look across a particular row rather than the full sheet for the last column?

  9. #9
    Forum Expert
    Join Date
    04-01-2013
    Location
    East Auckland
    MS-Off Ver
    Excel 365
    Posts
    1,343

    Re: Spell check certain columns or range based on todays date

    Yes use either of the two options.

    1) format it like this

    Please Login or Register  to view this content.
    2) yes replace the lastcol row with this

    Please Login or Register  to view this content.
    replace 1 with whatever row you want to use

  10. #10
    Registered User
    Join Date
    06-13-2018
    Location
    Cumbria, England
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2303 Build 16.0.16227.20202) 32-bit
    Posts
    24

    Re: Spell check certain columns or range based on todays date

    Thank you very very much!!

    Bravo

+ 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. Adding a border from around a range based on todays date
    By BenHarris in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-06-2018, 04:33 PM
  2. Autohide Columns that are < todays date and > todays date by 2 & 7 days
    By Dropfiddy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-28-2015, 03:51 AM
  3. Replies: 5
    Last Post: 01-05-2015, 03:57 PM
  4. How to define chart range based on todays date
    By dan162 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 11-16-2014, 11:37 AM
  5. Replies: 1
    Last Post: 10-20-2014, 11:01 AM
  6. Problem setting range in macro based on todays date.
    By shakeyjake200 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-15-2009, 12:48 AM
  7. Using VB to find a range based on todays date and todays date +30
    By Steve_al in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-13-2009, 09:31 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