Lock Certain Cells To Allow Data Entry But Not Allow Data To Be Removed

Apr 23, 2013

is there a way to lock certain cells to allow data entry but not allow data to be removed.

View 2 Replies


ADVERTISEMENT

VBA To Lock Cells After Data Entry And Save

Aug 13, 2013

I need the attached spreadsheet to lock cells after data is entered into cells E13-G74 and the page saved. It will be opened twice daily and saved. Also im not sure if it makes a difference but I would like all other cells outside this range locked except for C5, C6, C7 AND C8. I have seen several threads on the topic but am extremely new to using VBA and cannot make anything work.

View 6 Replies View Related

How To Auto Lock Cell After Data Entry

Jul 31, 2012

I am attaching the example where I need to lock H2 to H1000, note that sheet is locked "anixter12 and I have also given range to user for modification I simply want to lock cells in H once date is entered.

View 3 Replies View Related

Use VBA To Unlock/lock A Worksheet For Data Entry?

Oct 16, 2009

I have a worksheet that, unless a form for data entry is activated, should be read-only for columns 'A' thru 'M' and 'O' with column 'N' left editable.

The form is activated by a button with a macro assigned to enter the data in the above columns when the form is closed. This has been compiled and works nicely with the sheet unlocked, however, as i need certain columns to be read-only unless the form is activated, i'm stuck with leaving the whole sheet unlocked for editing with or without the form being activated.

Is there any way a VBA code could be used to unlock the worksheet columns that are read-only when the form is activated, and then lock them once the form data is entered to the worksheet and the form closed?

View 9 Replies View Related

Lock Cells For A Certain Time After Entry

Oct 10, 2012

I've got a spreadsheet set up for a simple barcode scanning system. The user scans the barcode of the product when complete, and it logs it to a sheet along with a date & time timestamp. I'm then planning to use a v-lookup (barcode to product name) & pivot-table to count instances of 'product name' so that I can monitor what is being produced easier, nothing too tricky.

The problem I'm having comes from the products of the same spec having the same barcode, so data validation is hard to apply, as I can't 'not allow dupes' - the concern I have is that if the user unknowingly (or knowingly!) scans the same ticket twice, I think I've got 2 of a product when I've only got one. The idea I had was to lock all cells for a set time period (say 1 minute) after an entry so that it couldn't be accidentally scanned twice.

View 1 Replies View Related

Auto Lock & Protect Cells After Entry

Feb 28, 2007

How would I go about lock a cell after there is an entry. Once the entry has been made the user could not change the entry. For example if a user enter in cell b2 he could not change the entry, he could change a2, c2, d2. He would also be able to put an other entry in b3, once enter the cell is lock.

View 5 Replies View Related

Lock Cells Based On Entry In Other Column

Mar 30, 2007

I have a spreadsheet where there are two columns for the user to enter data in, but they can only select one column. I want to lock the second cell if data is entered in the first. I can't find a way from validation to do this. Is there another way via VBA (stupid question, I know... VBA does everything but scratch your butt)

View 4 Replies View Related

Post To Lock Cells With Data

Jul 12, 2007

I believe it was yesterday this board had a post how to lock and protect cells with data and leave them unlocked and unprotected if they're blank, but I can't find it. Does anyone know where it was?

View 9 Replies View Related

Protect / Lock Cells After Data Input?

Mar 15, 2013

I have a spreadsheet whee teammates can inut the date in one cell and the exact time in another cell - how do I lock the cell with the time so it can't be changed?

View 1 Replies View Related

Lock Cells With Data Validation List

Oct 1, 2009


I need a macro which will lock the cells after data is entered in the cell once. Cell should should be only edited after a password is provided. I found the following macro but the problem is that it's not locking the cells where I have Data Validation List :

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Cells.Count > 1 Then Exit Sub
If Not Intersect(Target, Range("A1:M10000")) Is Nothing Then 'set your range here
ActiveSheet.Unprotect Password:="1234"
Target.Locked = True
ActiveSheet.Protect Password:="1234"
End If
End Sub

View 9 Replies View Related

Macro To Lock Cells After Data Entered

Mar 22, 2007

I need a macro which will lock the cells after data is entered in the cell once. Cell should become non editable and should be only edited after a password is provided.

View 4 Replies View Related

Automatically Lock Cells When Data Entered

Apr 16, 2008

I am trying to apply a conditional cell lock to a worksheet. I am using Excel 2003, not 2007.

In column J, I have a list validation being used. The default value is "Not Claimed", I want to lock the cell from being edited once the value has been changed to any other value on the list.

The worksheet will be password protected to prevent entries into static fields (A:I & N:P).

I also would like to give the user the ability to unlock a specific cell, not the entire worksheet, by entering a password or something if they accidently choose a wrong value from the list.

I have column Q and beyond available if I need to have the password entered somewhere else.

I have attached a sample of the file I am working with.

View 4 Replies View Related

Every Time I Would Clear The Form The Data Will Be Removed From The Linked Cell

Jan 2, 2009

I am trying to do this all in Excel and not have to us VB or Access.

I made a simple form in Excel to enter the hours worked for employees.
NAME , RATE, TOTAL HOURS WORKED ...

I want to link the data from this form to drop into another list that will show
the a running total of all hours worked.

BUT

Every time I would clear the form the data will be removed from the linked
cell.

View 9 Replies View Related

Excel 2007 :: Auto Lock Cells Once Data Is Entered Not Working

Aug 14, 2014

I have searched and found many examples of code that will lock cells once data has been entered. But for some reason, I cannot get it to work in my workbook. The weird thing is, I have successfully got them to work on blank workbooks. I unlock a range I want people to be able to edit, I protect the workbook, I enter the code, and it works. But I do the same thing on my workbook, nothing locks.

I've tried locking all the cells on a sheet, and only unlocking a small range, as in the examples (A1:A10), and I cant get it to work. I've tried not pre-protecting the sheet, I've tried 4 or 5 different examples of code. If it wasn't for the fact I've gotten it to work on blank workbooks, I'd think VBA was disabled or something. I can't post a copy of my workbook for you all to look at because its on a stand-alone computer at work (and the USB is disabled for info-sec).

Excel Version 2007

View 8 Replies View Related

Access Query Dumps Data Into Excel - All Automated - Need (Blank) Removed

Jan 22, 2014

I use Office 2010. I have an Access database that goes out and runs various queries from our systems of record. It then takes the data and dumps it into an Excel file. I have taken the info and created a file the grabs the raw data, converts it into Pivots and then Charts. All info is automatically updated however the size will change depending on what department is quering the data. It is really all done with a click of a button. I have tried to merely uncheck the "(blank)" but it comes back everytime the report is ran.

How can I keep it from returning??

View 3 Replies View Related

Limit Data Entry In Cells To Y Or N

Feb 26, 2009

I want to limit data entry in a range of cells to Y or N (Upper Case)

I have tried data validation, list, but this still allows y or n, I want just Y or N

View 3 Replies View Related

Macro VBA Code To Allow Data Entry In Few Cells

May 21, 2014

I have an excel spread sheet with the page title "Main". I would like to add a macro by pushing a button and a window pops up. It will have 4 columns or 4 questions. The first question will ask what is the date? You enter date, next question asks, What is the fundamental? You enter the fundamental. Next question is what is your name? you enter name and next question is enter what you need fixed. Once you enter that and press finished, the data is then place in the spreadsheet. All rows shift down 1 spot. B2 answer is posted in B2, question 2 answer is placed in C2, question 3 answer is placed in D2 and question 4 is answered in E2.

Each time someone presses the NEW ENTRY button this window pops up asking these 4 questions. The answers are then posted in cells B2 through E2 after shifting the entire page down 1 row.

View 2 Replies View Related

Locking Cells Upon Entry Of Specific Data

May 14, 2009

I'm creating a spreadsheet for work, which for security reasons requires certain information to be locked except to administrators. However the cells need to be open for inputing information for everyone until the administrator enters specific data.

Completed Date Time W/R No. Acc. No. Priority? Vunerable? Comments Closed Date/Time Yes 14/04/09 11:30:00 1234567890 8890976 Yes Yes N/A 14/04/2009 11:30

What I am looking to happen is once an adminstrator selects 'Yes' from the drop down menu on the Completed column, for that row of data to be locked for editing, unless unlocked later by an adminstrator.

View 9 Replies View Related

Stopping Data Entry If Adjacent 5 Cells Are Blank

Feb 10, 2009

I've got six columns with drop-down lists in every cell. I don't want column six to be selectable if the first five drop downs don't have data in them too.

Equally, I want the data in column six to be undone if columnns 1-5 are then unselected. Can I do this?

I know that using data validation or VBA is an option but I'm not sure exactly how to set it up this way. I also don't want anyone screwing with what can and can't be entered according to these rules - I want to keep it watertight!

View 9 Replies View Related

Lock Cell After Entry

Mar 14, 2007

I am using the code below to prompt the user to enter his/her name in cell B4. What I would like to do is have it so that after the user enters his/her name, that cell is locked and cannot be cleared.

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Address = "$B$4" Then
Range("B4").Value = InputBox("Please Enter " + Range("a4"), "Company")
End If
End Sub

View 9 Replies View Related

How To Auto Lock A Cell After Entry

Aug 27, 2012

I'm creating an inventory of cars for a car dealership that has about 27 or so columns and 500 rows for entries. Currently there are 50 rows used to keep track of inventory and with the additional rows for future entries. I want to set it up where the data entered into the cells gets locked automatically when saved and reopened for future use and can only be altered if a password is entered. Table is C3:AE503.

View 5 Replies View Related

Macro To Move Data From Data Entry Update Master Sheet Using Formula To Allocate

May 12, 2013

I am working on a project and would like to see if there is a solution for it. i have a workbook that has data entry that is summarized at a master level but I need to automatically use a formula to update another sheet after clicking an udpate button. The data from the data entry sheet needs to be allocated to all the lines that has the same master item based on the formula. A test workbook is attached ...

View 1 Replies View Related

Press Button To Open Form For Data Entry And Then Send Matching Data To Another Sheet

May 5, 2009

Now that the calculations are working, with the press of a button, I need to be able to select a range of dates and copy all lines within the range to a seperate sheet with the desired name under the same headings they currently reside under. I have included some modified code that is being used in another spreadsheet that was created for me, but I do not pretent to understand all of it and I no longer work with the creator of the spreadsheet. How do I use a button to open the form for date selections and entering the name of the new sheet, and then use the start button on the form to begin the matching and copying to a new sheet? If there is an easier way I am all for that too.

View 14 Replies View Related

Lock A Row With An Entry In Col B On Saving Or Closing Workbook

Feb 15, 2009

I have a spreadsheet for recording and summarising particular transactions. Column B records the date and Col C details the transaction type (from a data valdation list). Using conditional formatting the cell (in the same row) to whch the transaction value is to be entered is highlighted.

Other cells in the row contain formulas and are locked and the sheet is password protected.

On saving or closing the workbook I want to lock all the cells (used or unused) in any row in which there is a date in column B. How can I do this?

View 11 Replies View Related

VBA Program For Data Entry - Find The Matching Data To Update

Jul 15, 2009

I want the script to find if the value entered in the form is matching the values in column 'A' in the database and if it matches then it needs to select the cell as active cell - to populate the form details. And if there is no matching value found, the script needs to select the last empty cell of the column 'A' to populate the data entered in the form.

1) Form has 10 different fields that needs to be filled by the user.

2) Field 1 - is a text box for 'Request #' to be entered by the user.

3) After filling in all the fields - once clicked on OK, the form should search for the the 'request #' entered on the form in the database (Form and the database are in the same workbook).

4) If the 'Reqeust #' in the Column 'A' matches the the 'Request #' entered in the form, then the matching cell should be selected (Activecell -Were the data can be overwritten, with the new entry)

5)If there is no matching 'Request #' found in the database, the script should loop to select the next available blank cell in column 'A'. So that the form data can be entered.

View 14 Replies View Related

VBA Coding For Data To Activate On Data Entry

Jan 6, 2009

I have a spreadsheet which when I enter data into cell E15 (this cell is dropdown list (AL,ML,SDY,Toil)) it will copy data from another part of the spreacheet and past as value only.

So the aim is to select e15 pick from the dropdown this activates my VBA that copies data from cell A" and pastes special in A3 will this work on a dropdown and if so what code do i use. If it wont work what can i do instead.

Example I have used;

Sub ch()
If Range("F15") = "AL" Then


Range("A2").Select
Selection.Copy
Range("A3").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Case Else
Exit Sub
End Select
End Sub

View 9 Replies View Related

Force Data Entry If Another Cell Contains Data

Aug 21, 2007

I've been searching but I can't find an answer that fits. Here's the closest I've come. Force Date Entry on Particular Condition. What I need is if A10 has any data in it then I want a box to pop up that instructs the user to input data into B10 they click OK and then enter the data. Once the user inputs data into B10 then the error should be cleared. If they don't enter data then the error should keep coming back.

View 3 Replies View Related

Lock Formulas And/or Data From Changes

Jun 28, 2008

How do you lock a column of formulas so you can't change the format by cut and paste? Also, the same for data, locking data so it cannot be overwritten in Excel 2003 and 2007.

View 4 Replies View Related

Lock Data In Cell After Entering Value?

Feb 2, 2014

0: i have a sheet 1 protected and few edit range (Col A,B,C,D,E and F).

1: I have a validation on multiple adjacent columns (like Col A, Col C, Col E).
2: I need a code where if i select value in col a (cell A2) cell B2 should get current date and Time and both the cells (A2 and B2) should be locked. when i select data in cell C2 , D2 should get current date and time(Cell C2 and D2 should be protected).
3: User can enter data in A3 and B3 will get current date and Time (now A3 and B3) should be locked.
4: I need a function where user can call it and unlock the locked cells and edit the data and re-lock the cells again.

apart from the Col A,B,C,D,E and F, other columns and cells remain locked.

View 2 Replies View Related

How To Lock Cell Once Data Has Been Inputted

Sep 16, 2011

Is it possible to lock a cell once data has been inputted into it??

I want to make a spreadsheet which has empty cells for reference numbers that once entered cannot be changed unless it is by the administrator.

i also want the spreadsheet to be accessed on multiple pc's by multiple users.

View 9 Replies View Related







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