+ Reply to Thread
Results 1 to 6 of 6

Help Needed: Offset

  1. #1
    Registered User
    Join Date
    08-30-2012
    Location
    phiippines
    MS-Off Ver
    Excel 2007
    Posts
    22

    Help Needed: Offset

    Hi Good Day,

    I want a macro that locks specific cells in column C based on value in Column B, I was able to do it but in one cell only, Please teach me how to apply my macro in all cells in column C. I'm a totally noob with this, I tried to do Activesheet.cell.offset but it always prompt errors.
    Please Login or Register  to view this content.
    Last edited by Leith Ross; 05-02-2015 at 12:07 AM.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,486

    Re: Help Needed: Offset

    Attaching a sample workbook enables others to work on your problem:

    To attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include BEFORE/AFTER sheets if needed to show the process you're trying to complete or automate. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  3. #3
    Registered User
    Join Date
    08-30-2012
    Location
    phiippines
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Help Needed: Offset

    hi davesexel,

    thanks for the reply, I've been trying upload the file but it always fail I'm not sure why.

    What I want to happen is that

    I have dates in column B:B

    then I have data in Column C:C

    I want to lock cells in column C:C based on the dates in Column B:B

    Cell in Column C will be locked if the date in column B is 5 business days passed already

    Column B Column C Scenario
    4/5/2015 Locked cell in column c will be locked since the 5 business has already passed from the current day
    5/1/2015 Can be Edit cell in column c is still not locked this will be lock on 5/8/2015

    Hope you can help me
    Last edited by shaknark; 05-02-2015 at 06:33 AM.

  4. #4
    Forum Expert JasperD's Avatar
    Join Date
    05-07-2013
    Location
    Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    1,393

    Re: Help Needed: Offset

    Please Login or Register  to view this content.
    Please click the * below if this helps

  5. #5
    Registered User
    Join Date
    08-30-2012
    Location
    phiippines
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Help Needed: Offset

    Hi JasperD,

    Thanks for the reply but the code you provided only locks C1 it does not apply in other cells of column c
    Last edited by shaknark; 05-02-2015 at 06:51 AM.

  6. #6
    Forum Expert JasperD's Avatar
    Join Date
    05-07-2013
    Location
    Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    1,393

    Re: Help Needed: Offset

    Quote Originally Posted by shaknark View Post
    Hi JasperD,

    Thanks for the reply but the code you provided only locks C1 it does not apply in other cells of column c
    I forgot to disable error handling for when the cell in column B is not a date.
    Untested, but should work:
    Please Login or Register  to view this content.

+ 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. IF-OR-Offset Formula Help needed
    By [email protected] in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-15-2014, 12:25 PM
  2. [SOLVED] Sumproduct Offset alternative needed
    By samshiells in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-06-2012, 12:18 PM
  3. [SOLVED] Excel 2007 : Offset function help needed
    By kalles in forum Excel General
    Replies: 5
    Last Post: 06-16-2012, 07:36 AM
  4. Forecast + Offset Formula Needed
    By artiststevens in forum Excel General
    Replies: 12
    Last Post: 02-21-2011, 05:55 AM
  5. Range - Offset (Major help needed)
    By VBA Noob in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-22-2006, 12:58 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