+ Reply to Thread
Results 1 to 6 of 6

Conditional Lock Cell

  1. #1
    Registered User
    Join Date
    10-16-2008
    Location
    Chicago
    Posts
    3

    Conditional Lock Cell

    Hello,

    I'm new to programming and I have been looking on how to create a simple worksheet for a hotel manager where I can lock two different cells when another cell has entry. (It's pretty much showing that when a two bedroom is reserved, the one bedroom and hotel room beside it cannot be reserved.) I included an attachment. For example, is if B36:F36 (or merged together with entry) has an entry then B15:F15 and B31:F31 become locked and cannot enter in these cells.

    Is it possible to add a box that is required to fill out when entering in these rows B35:AE38 so when a those cells are entered (two bedroom is reserved) a pop up window will show up when you select the reflecting hotel rm or one bedroom?

    Would there be an easier way to do the conditional lock other than using Macro?
    Attached Files Attached Files

  2. #2
    Forum Contributor Kieran's Avatar
    Join Date
    10-02-2003
    Location
    Perth, Western Australia
    MS-Off Ver
    Office 2003
    Posts
    109
    Giah98,

    you appear to ahve tried thsi with conditional fomatting already.
    Try cahnging the fomula in the conditional format in cell b15 to =B36<>"" and try again - that may be a better way to show it.
    It does not however lock the cell.

    That can only really be accomplished with VBA.
    Kieran

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    You cannot lock a cell with a formula or Conditional Formatting. I can't follow what you mean, your worksheet doesn't look very user friendly to me.
    Hope that helps.

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

    Free DataBaseForm example

  4. #4
    Registered User
    Join Date
    10-16-2008
    Location
    Chicago
    Posts
    3
    The spreadsheet is simple, dates are on top, type of hotel room on the left column. Here's what I want to show. If someone reserves the first two bedroom suite, the first one bedroom suite (rm#: 101)and first hotel room (rm#: 102) are combined to create the two bedroom suite for that reservation. I want to make the spreadsheet to lock the first one bedroom suite (rm#: 101)and first hotel room (rm#: 102) when someone books the two bedroom to avoid double or triple booking. Is that explained better?

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    What's wrong with the conditinal formatting that youare using?

  6. #6
    Registered User
    Join Date
    10-16-2008
    Location
    Chicago
    Posts
    3
    The conditional formatting currently just greys the two corresponding hotel rooms. I would like it to grey, lock the cell (so no one can make a reservation for those rooms when the 2 bedroom is reserved, or add data into those cells), and if possible when you select the greyed cells it would pop up a message saying "the 2 bedroom is reserved, this will cause double booking" or something like that.

+ 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. lock preceeding cell if previous left blank
    By kaspr79 in forum Excel General
    Replies: 1
    Last Post: 06-26-2008, 01:42 PM
  2. Conditional cell lock
    By coolanks in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 05-30-2008, 09:57 AM
  3. Conditional Format- Blank cell with formula problem
    By Trappy in forum Excel General
    Replies: 4
    Last Post: 08-20-2007, 09:51 AM
  4. Conditional Formatting based on 3 different cell values (criteria)
    By xlguy in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-05-2007, 05:36 AM
  5. Conditional Format a cell based on a range of numbers
    By fablhof in forum Excel General
    Replies: 2
    Last Post: 04-27-2007, 11:39 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