+ Reply to Thread
Results 1 to 6 of 6

Column lock by Date in excel VBA

  1. #1
    Registered User
    Join Date
    04-16-2012
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    33

    Column lock by Date in excel VBA

    hello,
    I want to lock column on bases of the date that appear on the top of the column, if the date shown in cell A1 is today's date then column containing previous days date should be locked automatically (entire Column). sheet appears as attached here.
    Attached Files Attached Files
    Last edited by rain4uu; 10-05-2013 at 08:38 AM. Reason: No Replys

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Column lock by Date in excel VBA

    Hi rain4uu

    Try this
    Please Login or Register  to view this content.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Registered User
    Join Date
    04-16-2012
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Column lock by Date in excel VBA

    Thanks for Reply but the code provided is not working......please help
    please write the code in sheet provided so that it can be checked

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Column lock by Date in excel VBA

    Hi rain4uu

    Code is in the attached
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    04-16-2012
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Column lock by Date in excel VBA

    thanks jaslake .

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Column lock by Date in excel VBA

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED",as per our Forum Rule #9. I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

+ 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: 4
    Last Post: 05-01-2013, 07:38 PM
  2. Lock Excel Column when the date in system expires
    By benedictine191 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-18-2012, 12:55 AM
  3. lock all cells before current date (Dates are in Column)
    By Sanoj in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-07-2012, 12:36 PM
  4. Replies: 3
    Last Post: 03-07-2012, 11:04 AM
  5. lock moth for a date column
    By ladyhawke in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-22-2006, 03:35 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