+ Reply to Thread
Results 1 to 5 of 5

Disabling cells in excel based on condition

  1. #1
    Registered User
    Join Date
    01-27-2009
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    4

    Disabling cells in excel based on condition

    Hi..

    I have a dropdown in column A(with values Yes and No)

    If i choose Yes(Say cell A2) from the dropdown,all the cells of the corresponding row(B2,C2,D2,E2,F2....) should be enabled..This is the default way excel works.

    My requirement is ..

    If i choose No(Say cell A3) from the dropdown,certain cells of the corresponding row have to be disabled(Say C3,E3 and J3)

    Please help me over this.

    Thanks in advance..

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Disabling cells in excel based on condition

    What kind of drop down are you referring to?
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    01-27-2009
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Disabling cells in excel based on condition

    I created a dropdown using Data-->Validation-->List where List is the list of values(Yes and No) stored in some other cells.

  4. #4
    Registered User
    Join Date
    01-27-2009
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Disabling cells in excel based on condition

    Please help me over this.

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Disabling cells in excel based on condition

    You could have found very similar code if you had searched the Forum!Try this
    Please Login or Register  to view this content.
    To add it to your worksheet, do the following:

    Copy the code that you want to use
    Select the worksheet in which you want the code to run
    Right click on the sheet tab and choose View Code, to open the Visual Basic Editor.
    Where the cursor is flashing, choose Edit | Paste
    Last edited by VBA Noob; 02-08-2009 at 08:21 AM.

+ 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