VBA Code To Unlock Cell If Another Cell Value Is Greater Than 6.00

Feb 28, 2013

I have a protected worksheet with most cells locked and some that are unlocked. I also know the password to unlock the sheet. VBA code to monitor a cell(B29 in my case) and if it has a value of 6.00 or more than it will unlock cell B34?

View 7 Replies


ADVERTISEMENT

Unlock Cell Using Code

Mar 6, 2009

code that will unlock cell g12 and af9 when cell e9 equals "WF-"

Basically I need it to say (I really don't know how to write code)
If "E9"="WF-" unlock "G12" and "AF12"
If not, clear contents of "G12" and "AF12"

View 11 Replies View Related

Lock / Unlock Excel Cell Based On Contents Of Another Cell?

Sep 12, 2013

How to Lock/Unlock an Excel Cell Based on the Contents of Another Cell?

View 1 Replies View Related

VBA To Clear And Lock / Unlock Cell Based On Another Cell

Jan 14, 2013

I'm trying to write a vba code that does the following....

There is a question in column A to which the user chooses yes or no from column B. Based on the response in column B, I'd like the same row column D to be formatted so that if the anser is yes, the cell is white, and unlocked. If the response is no, the cell is cleared, locked and the greyed out. (e.g. if B4 is "Yes", the format in D4 will change) So far I've come up with the following which formats the colour:

Dim response As Range
For Each response In Range("$C$10:$C$73")
If response.Value = "Yes" Then

response.Select
ActiveCell.Offset(0, 2).Range("A1").Select
With Selection.Interior

[Code] .......

How to add in a .clearcontents function, so that the contents are cleared if the response is not "yes", and also what I would need to add to unlock the cell in column D?

View 1 Replies View Related

Unlock Cell/s Dependant Upon Entry In Another Cell

Jan 3, 2010

I've never dealt with vba before and I'm not even sure if that's correct. I wish to lock a worksheet with two cells left unlocked, when an entry is made in one or other of these two cells I need other cells to become unlocked.

View 2 Replies View Related

Record Greater Than 50 In A Cell So It Reads As Greater Than 50

Aug 25, 2009

I have to make a table that shows that a if someone purchases

less than 5 items they receive no discount
5-10 items they receive 2% discount
11-20 items they receive 5% discount
21-50 items they receive 8% discount
over 50 items they receive 10%

and it has to be done in a way that the discount rate can be calculated using Vlookup I am struggling to find the best way to write this table. i tried numbering 1 to 50 and writing the corresponding discount rate in the second column but this looks untidy and can't calculate greater than 50 as i am not sure how to write it in the cell so it reads as >50 and not just 50.

View 4 Replies View Related

Unlock A Cell Acording To Another Cell

Aug 10, 2006

I am trying to make a sheet that is protected. It's protected in that way that all cells are protected and locked except cell C3. When someone then type anything in cell C3 and leave the cell then cell D3 automatic unlock. I know how to do it with a macro. But I don't want that the user have to press the macro-buttom to unlock cell D3. It should unlock cell D3 automatic.

View 9 Replies View Related

Unlock A Cell With A Button

Mar 19, 2009

I want to let the user unlock certain cells but only after they have clicked a button. To notify that the cell is unlocked I also want it to change colour.
Is this possible?

I have attached a small example. Password is mg

unlock.xlsx

View 6 Replies View Related

Unlock Sheet On Cell Selection?

Jul 4, 2014

I have a table and need to protect the sheet. From searching I see its a common problem as the table wont auto expand on a protected sheet.

I was thinking maybe I could create some sort of change event so if a user selects cells on Column A,B,G,H rows 13-1000 the sheet will auto unlock then lock again once they leave those cells.

I think it may need a few seconds delay to give table chance to autoexpand before sheet is locked again.

View 3 Replies View Related

Unlock Cell Range If Row Is Blank

Nov 9, 2012

I have a worksheet with active range A9 thru K200 that is locked. When worksheet is opened, I need it to automatically unlock all rows that are blank, for users to input data. It would be great if this could also require data in column A, C and K before allowing workbook to be saved and closed.

View 2 Replies View Related

Conditional Cell Lock Unlock

Dec 10, 2006

None of the information Ive found on the forums seem to work in my sheet and Im not sure why. After protecting my sheet/workbook, I would like a particular input of a cell to Unlock another cell.

ie if the contents of cell A1 is the phrase "TRUE", then cell B1 will be Unlocked for editing. If the contents of A1 is "FALSE", then B1 shall remain locked. From what i can tell, this must be carried out using VBA code. If anyone can resolve this issue, Id be also very grateful if you could explain what each line of the code means

View 6 Replies View Related

Lock Used Cell. Unlock Blank Cells

Nov 6, 2006

I need to lock cells or ranges in a worksheet which has value (any value)....
The cells which are blank should be unlocked so that the users can enter data.

View 5 Replies View Related

Lock & Unlock A Cell Based On Another Cells Value

Dec 20, 2007

trying to put together a formula, I am trying enable two cells to change between being 'Locked' and 'Unlocked'. I am doing this by using a CheckBox which is referenced to cell [E16] so that when it is checked, 'TRUE' will be displayed and when Unchecked 'FALSE' is displayed. From this I have tried to devise a formula for the cells [c26:I26] and [K26] that when cell [E16] shows 'TRUE' the cells [c26:I26] and [K26] are Unlocked and when it shows 'FALSE' the cells [c26:I26] and [K26] then become locked.

View 3 Replies View Related

Conditional Multiple Column Unlock Via Cell Reference?

Aug 2, 2013

I have an inventory log that requires multiple cells in different columns to be unlocked based on a reference cell's input.

So, if a cell in column E has "MORNING" entered then cells L/M/N are unlocked and said user can input data for that row, and only that row. If anything else is in E, then L/M/N are left locked.

Is there a way to do this without coding, just using regular IF() in the cell directly; IF(ISTEXT(E3)=MORNING, Unlock, KeepLock)? I know that's nowhere close to being a legitimate statement, but it's the best way I can translate my thoughts.

View 9 Replies View Related

Lock/unlock Cell Based On Another Cells Input

Feb 25, 2009

I want cell g12 to be locked unless cell h7 is Grass Fire or Timber Fire (H7 is a drop down validated cell)

View 8 Replies View Related

Excel 2010 :: Unlock Whole Workbook By Putting Password In A Cell

Jul 11, 2014

I'd like to be able to unlock the whole of a workbook by putting the password into a specific cell and then the whole thing locks again when it is saved. I have been able to find the coding to do this for a worksheet but I'd really like to be able to unlock the whole project.

View 7 Replies View Related

VBA Code To Unlock Multiple Sheets

Oct 4, 2007

How I can unlock a range of sheets that are password protected in my workbook.

I have 20 identical sheets one for each department which are protected by the same password.

It would be nice if I could rapidly lock and unlock these sheets.

What I need a set rng command in conjunction with a For Next loop?

View 12 Replies View Related

Code To Unlock Password Not Working

Apr 4, 2014

I have a workbook whose worksheets I want to protect on open, and also want to unprotect by way of a module. The protect code is:

Code:
Private Sub Workbook_Open()
Sheets("Cornealrings").Protect Password:="elohim"
Sheets("Ferrararings").Protect Password:="elohim"
Sheets("Kera Rings").Protect Password:="elohim"
Sheets("IS CALCULATOR").Protect Password:="elohim"
Sheets("IS Manager").Protect Password:="elohim"
End Sub

The unprotect code is:

Code:
Sub Unprotect()
Sheets("Cornealrings").Unprotect Password:="elohim"
Sheets("Ferrararings").Unprotect Password:="elohim"
Sheets("Kera Rings").Unprotect Password:="elohim"
Sheets("IS CALCULATOR").Unprotect Password:="elohim"
Sheets("IS Manager").Unprotect Password:="elohim"
End Sub

The code stops at the first line of the unprotect event, with the message that the password is not correct. If I try to manually unprotect, the password is accepted.

View 7 Replies View Related

Change Text Of Cell If Cell Is Greater Than Nothink Withen Range

Jul 16, 2009

I would like to change the name of all cells withen xrange with a text value greater than nothink.

View 4 Replies View Related

Amount In Cell Is Greater Than A Value, Change The Text Color Of Cell.

Oct 22, 2009

is possible to have a cell's text color change if the value of the cell is greater than a certain amount. For example, if the cell is $200 or more the text would change to red.

View 3 Replies View Related

Conditional Format: Highlight A Cell If Any Cell In The Range To The Right Was Greater Than Zero

Mar 28, 2007

If I wanted to highlight a cell if any cell in the range to the right was greater than zero, what formula would i use. I have tried =IF(L1:AD1>0,1) with the result returning for only the cells in column L. Row 3 has no value in column L but a value in column N with no result to highlight the cell.

View 4 Replies View Related

Formatting Cell To Insert X If Value Of Another Cell Is Greater Than Or Less Than A Range

Feb 6, 2013

I would like to create a cell that will tell me if a dimension has failed.

I have a tolerance that the value must be between and if it is not then i would like a cell that will input an X

View 7 Replies View Related

Copy Cell Range If Column Cell Greater Than 0

Feb 6, 2014

I’m trying to write a macro to look down two different columns in my work sheet and if the is a value >0 then copy a set range of cells to another sheet,

I need to search column (k) and (x) range (“K2 : K147”) and (“X2 : X147”) in (sheet1) for values >0 if there is, then copy from (“f : m”) if it is found in the (k) column, or copy from (“s : z”) if it is found in the (X) column, and paste value only to the next empty cell in sheet2 . Sheet2 is empty so (A) on down is fine for paste range. There is a spin button in the copy range column (L) and I don’t want that picked up in the copy. Manually I (paste text) only but I think (values only) will do the same thing.

[Code] .........

View 14 Replies View Related

If Cell Value Is Greater Than Another Cell Value By 2 Years - Highlight Red

Mar 26, 2014

I have a spreadsheet that records "Audit Date" in column C & "Audit Due Date" in column D. "Audit Due Date" is always 2 years from "Audit Date". I think I learnt the correct forumla to use =EDATE(C2,24). What I would like Excel to do is to highlight "Audit Due Date":

Red: If the audit was completed 1.5 years+ Amber: If the audit was completed between 1 & 1.5 years Green: If the audit was completed less than 1 year The colour key will show me which audits need chasing.

View 2 Replies View Related

If Condition:one Cell Is Greater Than Previous Cell By At Least A Certain %?

Apr 29, 2009

how to include a condition in the condition? What I mean is in this set of numbers:
1000(A) 1000(B) 1000(C) 1200(D) 500(E) 1000(F)

I want excel to point out (with a 1, True, x, whatever) if (B) is greater than (A) by 10% or more and if (C) is greater than (B) and so on. I know I cant use =if(C>B,1,0)...Im just unsure how to include the % in the function

View 2 Replies View Related

IF Cell Value H2 Greater Than 0 / Change Cell Value I2 To 0

Jan 5, 2014

[URL] ........ I have 2 columns for cost (Column H and Column I). Please ignore the rest of the columns such as Amazon fees and shipping fees.

I already used VLOOKUP in my Item Cost column to gather product price based on product name (Column A).

However, I'd like to ask Excel for an IF function that will do the following:

After using VLOOKUP to find item cost, IF Drop Ship Cost (Column H) is greater than 0, I'd like Excel to change my Item Cost (Column I) to 0.

The reason behind this is because there are 2 places I get my inventory from:

1.) My warehouse. But if my warehouse runs out, I get it from

2.) Another reseller who will drop-ship for me

Therefore, I'd only be able to get my product from one place or the other, not both places.

View 3 Replies View Related

Copy If Cell Greater Then Zero

Nov 24, 2009

I have one sheet where I am entering the necessary parts of the particular order. Once I have it completed I need to run a macro to copy only the elements that I have marked.

From rows 3-17, if cells in E3-E15 are greater then 0 then I need the rows
from Column "C" to Column "G" and Column "I" copied to another sheet. With rows 20 - 97 if cell in column "E" is > 0 then copy the relevant row from column "B" to column "E". I am attaching the file.

View 2 Replies View Related

Macro For Cell Value Greater Than 0?

Jan 5, 2012

I have three spreadsheets.

I need to have an automatic macro where if the Cell Value in SPREADSHEET 2 for example Cell J5 is greater than 0 (Zero is the default value in the cell).

Then the macro will open up a msgbox that says "You Are Not Eligible" in SPREADSHEET 1.

View 1 Replies View Related

Run Macro If Cell Value Greater Than 1

May 5, 2004

I would like the macro to run on its own if the cell value is greater than 1

i have data comming into the excel sheet using sql,
and j1005 cell calculates the entire data displays 1 if condition of j1005 is met else display 0 . the data refreshes on its own and j1005 keeps check every time and display the value 1 or 0

View 9 Replies View Related

Comparing How Many Times One Cell Is Greater Than Another On Same Day

May 10, 2014

I want to be able to count how many instances Primary Price is >= Price 2. And, secondarily how many times Price 1 was, at a minimum, >= to Price 2 and then also >= Price Price 3.

Ultimately I want to compare Primary to 100 or so "Prices" over a years time

I figure it would be a sumproduct function, but can't get it dialed in

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved