+ Reply to Thread
Results 1 to 7 of 7

MAcro to lock and unlock cells depending on rows selected.

  1. #1
    Registered User
    Join Date
    05-11-2007
    Posts
    93

    Question MAcro to lock and unlock cells depending on rows selected.

    Hi all,

    I have a excel sheet where depending on the value of a column in each row i must make some cells locked and others unlocked.

    so i have the following code:

    Please Login or Register  to view this content.
    This is working fine.
    But only for ROW 11.
    But now depending on the row selected i want to make the columns of the corresponding rows Locked. how can i do it?

    Thanks
    Glen.

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524
    try
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    05-11-2007
    Posts
    93

    Question

    No Jindan,

    It's not locking the columns at all.

    -Glen.

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524
    Quote Originally Posted by ballack
    No Jindan,

    It's not locking the columns at all.

    -Glen.
    If you look at your code, where are you locking any cell?
    The following line is the only one that you are locking
    Please Login or Register  to view this content.
    However, you are unlocking in the next line
    Please Login or Register  to view this content.
    What do you want to do?

  5. #5
    Registered User
    Join Date
    05-11-2007
    Posts
    93
    I am sorry Jindon your code is working.
    I had to change the lock=true.

    Thanks a lot for your help.

    Glen.

  6. #6
    Registered User
    Join Date
    05-11-2007
    Posts
    93

    Question

    Hi all,

    If i want to lock the cells in corresponging Row in other sheets alos , then how can i achieve it?


    Thanks a lot once again.
    Glen.

  7. #7
    Registered User
    Join Date
    05-11-2007
    Posts
    93
    can anyone help me on this?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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