VBA - Distinguishing When Cell Is Edited By Data Validation List Or Free Format Text

Mar 20, 2014

VBA code which can distinguish whether a cell has been edited by:

selecting an option from a data validation list (DVL)
or
manually editing the text in a cell?

The ""Show error alert after invalid data is entered"" option is unticked to allow both selection from the DVL as well as free format text entries.

The problem arises when using the code below which makes an edited cell within a range display the new value as well as the prior value(s). This works well when using the DVL but not when editing the cell.

Is there any code which can distinguish between the 2?

[Code] ....

View 5 Replies


ADVERTISEMENT

Data Validation Dropdown Menu But At Same Time Allowing Users To Enter Free Text

Nov 15, 2010

Is there a way to have a data validation drop down menu but at the same time allowing users to enter free text as well.

View 3 Replies View Related

Allow Data To Be Edited But Not Format To Be Edited

May 5, 2006

I have a cell that I am needing to allow users to edit the data but not the format.

The users edit the data by copying & pasting from their own personal spreadsheet. The source spreadsheet formatting can be varied. Is there a way to allow them to be able to edit the data inserted but not the format?

View 3 Replies View Related

Macro Won't Run If Text Is Being Edited In Cell

May 27, 2014

I have a log book that gets modified through out the day, and an auto run macro that runs at specific times to save the data to a database type sheet, and clear the form for the next shift. some of the operators are double clicking in the cell so they can type their comments. If they do not hit tab or enter when they are done, and the save time comes, the macro is not running, and I'm not collecting the data that I need. Is there a way to force the macro to run, or to force a tab/enter after 3 minutes of inactivity?

View 4 Replies View Related

Distinguishing Between Text And Value (formula)

Apr 10, 2014

is there a formula i could use to distinguish between a character being text or a character being value?

i.e.

Cell A1 = 1
Cell A2 = G
=If(A1="value",TRUE,FALSE), answer = TRUE
=If(A2="text",TRUE,FALSE), answer = TRUE

View 3 Replies View Related

Format Column Widths - Free And Fixed

Jan 11, 2010

I need to know how to format columns in a spreadsheet. What I want to do is autofit the columns, all except for Column A; I want that want at a fixed width of 9. The code below is my attempt to do this, and it's not resulting as I wish. Stepping through the code, it performs the first part beautifully and autofits all of the columns. Where I have the line

View 2 Replies View Related

Data Validation List Based Off Cell Value

Apr 25, 2014

I'm trying to have a Data Validation list issue where I want to populate a second list based upon the value of the first list.

In this instance I have a Department in the drop down and Employee Name in the second drop down and I want people to only see Employee names if they're allocated to a particular Department. I've been able to do the list using the INDIRECT function, however that only works when there's only a small sample of both names & depts, however I'm looking at populating this document with around 3000 people and over 250 departments, so I would like to be able to use Column J on the Source Tab to populate the details on the Manager Entry tab.

I have attached a sample spreadsheet if I've not explained very clearly.

TIMESHEET sample.xlsx

View 9 Replies View Related

Distinguishing Between 0 And Blank Cell?

Apr 25, 2014

The following formula looks through a list of names (in this case, looking for Joe Smith) in the monthly tab (in this case, MARCH) from column B and enters the calculated value associated with that name from column G. The formula works fine, but when there is no value in column G, it returns a 0% (format in the receiving cell is set for %). This would be fine, but since it does not distinguish between a true 0% and a blank cell, this is causing a problem.

=SUMIF(MARCH!B2:B31,"Joe Smith",MARCH!$G$2:$G$31)

View 8 Replies View Related

Data Validation In That Large Merged Cell Using List And =Cements

Mar 25, 2009

I am including a sample. On sheet 1 I am trying to do data validation in that large merged cell using List and =Cements. Why do I get the error that pops-up?

View 5 Replies View Related

Two Cells Data Validation List Should Be Populated In Third Cell With Unique Values?

Apr 21, 2014

In cell H5 there is list of dates and in H7 there is codex, based on these two conditions in H11 a data validation list should be populated from the code_sheet using column B. The populated list should be unique entries, as the column B in code_sheet has duplicates.

View 9 Replies View Related

Data Validation Used To Create Separate Data Validation List

Feb 15, 2014

I have 2 columns First Name & Surname. What I want to do is create a data validation list on the surname which results in the 2nd data validation list only showing the first names which link to one of the surnames.

i.e. If I selected Smith in the 1st validation list then I would only like to see 'Paul' as an option in the 2nd list

First Name
Surname

Paul
Smith

Paul
Jones

Tony
Phillips

View 1 Replies View Related

Limit Text Length In Cell With Formula By Data Validation?

Jan 25, 2014

Can I limit the text length in a cell that contains a formula? You may say "Limit the text length in the input cell". That can't be done because the formula in the resultant cell takes text from two other cells in addition to the input cell. I need to limit the overall text length to, let say, 50 characters.

View 7 Replies View Related

Data Validation List Automatically Show The First Item In The List Rather Than Showing Blank

Jun 20, 2008

I can't seem to find a way to make a data validation list automatically show the first item in the list rather than showing blank.

View 10 Replies View Related

Named List: Data Validation To Restrict The User To Only Selecting Values In A List

Jun 15, 2007

I'm trying to use data validation to restrict the user to only selecting values in a list which I create. Right now, the list is a named range. I'd like to get rid of the range and just use a named list. I create a name using the following as my list.

Insert > Name > Create
Name: Fruit

Refers to:
banana,apple,orange

When I try to use the name Fruit in my data validation, I get the message "The List Source must be a delimited list, or a reference to single row or column." I thought my name "fruit" was a delimited list.

View 4 Replies View Related

Nested Data Validation: Figure A To Enforce Dual Data Validation On A Single Cell?

Aug 19, 2009

I'm trying to figure a to enforce dual data validation on a single cell. That is, I need to restrict the user to entering only a decimal value, only if a particular other cell (say A2) is blank. To put it another way, if A2 is blank, the user can enter a decimal value, but if A2 is not blank, the user cannot enter anything. I can use Data Validation to enforce either the decimal restriction or the ISBLANK, but I'm not sure how to make them work together.

View 2 Replies View Related

How To Get Unique List From A Column To Data Validation Dropdown List

Oct 28, 2011

I'm looking for a way to get a unique list from a column to a data validation drop down list. Any fancy formula or vba script to create a UDF which. Does this?

View 5 Replies View Related

Excel 2007 :: Data Validation List Depend On Another DV List

Apr 29, 2012

I have a List of Different Fruits in Cells A1 to A5

Apple
Banana
Orange
Strawberry
Cherry

And I use data validation list in 5 different cells from Cells C1 to C5 then in every cell the list will show all the fruits,

But I want that if I select Any Fruit in cell C1 that should not be included in the remaining 4 cells, and the fruits selected in Cells C1 and Cell C2 should not be included in the remaining 3 cells and so on....

I Used the formula

=IF(C1=A1,OFFSET(A2,,,COUNTA($A$2:$A$5),1),0)

But this works fine if I select Apple in the Cell C1, then the List of C2 Shows all Fruits other than Apple, But if in Cell C1 I select any fruit other than Apple it does not work... (Using Excel2007 & Win XP)

View 4 Replies View Related

VBA To Change Background Colour In Free Form Depending On Text In Cells?

Apr 3, 2014

I have a spreadsheet with several freeforms. I would like them to change backgroundcolour, if the content in a cell is equal to another cell.

Basically I would like my shape "Freeform1" to change backgroundcolour to RGB (0, 180, 0) if Sheet1.Range ("A1") = Sheet2.Range("D3").

If it's not the same content in both cells, I would like the freeform to remain unchanged, that's RGB (79, 129, 189).

This should happend automaticly, so I don't have to click the shape to make it happen.

View 5 Replies View Related

Setting Widths List Box In Data Validation List

May 12, 2004

dear....can i set width in list box data validation (width in cell i set short).thanks

View 9 Replies View Related

Force Choice From List: Data Validation List

Oct 18, 2006

is there a way to force so that a cell value can be only of what a validation droplist offers, hence users can not enter their own values and have to use the droplist for cell content selection.

View 2 Replies View Related

Text To Number Conversion In Validation List!

Dec 3, 2007

I have 2 sheets;

Sheet1 (Also named "TicketNames") and Sheet 2 ("Day1").
On TicketNames I have 4 Columns the first 3 columns with about 5 names per columns.
Each list of five are given a specific Name ("One","Two","Three"). The last column is just
a list for Day1 dropdown menu. (3 names, "One", "Two", "Three").

On Day1, I have a validation list on A1 which will allow the user to select either ("One, Two or Three").

On B1, another dropdown menu, but it will only show the items related to the selection they made on A1.

My problem is that on A1, instead of having "One" show up, I want it to say "$1" for One dollar. But because it is a number not a text it won't allow me to use a validation list using this.

I'm using Excel 2007

View 14 Replies View Related

Popup When Data Has Been Edited But Not After VBA Run

Apr 8, 2013

I've got a data sheet (called "data") which contain a bunch of data, if someone edits the data manually then a msg boxpopups. which i've done using the code below in the code on that tab. However, I also have vba that places data on the tab that also triggers the popup message.

So how do i make it such that if the vba is run then the popup doesnt appear but if they edit the data manually then it does?

VB:
Sub Worksheet_Change(ByVal Target As Range)
Dim WatchRange As Range
Dim IntersectRange As Range

[Code].....

View 3 Replies View Related

Using Data Validation For Numeric Format

Dec 17, 2012

How to use data validation to restrict the input format into a cell. I'm trying to limit a cell to the following format: either ###/###' or ##/##'. NOTE: the apostrophe at the end. Here is what I've been trying to get the thing to work for the 2nd case:

=AND(ISNUMBER(LEFT(H1,2)+0),MID(H1,3,1)="/",ISNUMBER(RIGHT(H1,2)+0),MID(H1,3,1)="'")

But I'm getting an error when I input a test into the cell, e.g. 12/45'.

View 9 Replies View Related

Edited Cell Always On Top?

Feb 9, 2013

In long worksheets where I have to edit each cell, I would like it if the cell that is being edited is always on top of the screen. That way I wouldn't have to scroll as much.

View 1 Replies View Related

Data Validation List, Disallow If Not In List

Jul 16, 2009

I am using Data Validation on some fields to create a drop down list from a named range! These fields however allow you to enter values that are not in the list.

Is there a way to make the cell have to be an entry from the data validation list?

View 6 Replies View Related

Userform Button To Update Edited Data?

Sep 13, 2013

I have been working on a userform for entering in and editing data in a spreadsheet, but I'm stuck with the code for updating the edited data.

I have two pages on the Userform, one for adding a new entry, and one for editing an existing entry.

On the page for editing an existing entry, I have a combobox that displays information in the text boxes based the selection. What I need to be able to do is click save once I have made changes to the information in the text boxes and then have that information saved in the spreadsheet.

I have figured out all of the other buttons in the userform, but I am struggling with this last one. Here is my spreadsheet with some sample information entered in : ExcelFile.xls

View 9 Replies View Related

Editing In One Tab And Placing Edited Data In Queue In Another Tab?

Jun 24, 2014

I have a simple Excel file composed of three tabs:

-EDIT
-QUEUE
-RESOLVED

On each tab, line 1 has the same headers: Status, Name, Surname, Issue, Details, Last Update

In the EDIT tab, line 2 is dedicated to editing the relevant information under the headers, and once done is validated with a "Done Editing" button: This button would cut line 2, and place it in line 2 of the QUEUE tab, moving down all the others in the list

The QUEUE tab lists all the issues keyed into line 2 of the EDIT tab. An "Edit Selected" button would cut the selected line (or the line in which a cell is selected), and copy it to line 2 of the EDIT tab for further editing, after which it would be placed on top of the queue once again as above.

The RESOLVED tab lists all of the issues marked "Resolved" on the Status column.

What I can't figure out are the macros for the two buttons:

- "Done editing" in EDIT tab adds today's date in the "Last Update" column, then cuts line 2, and pastes it in line 2 of the QUEUE tab pushing down all the lines in the list, and keeping any existing conditional formatting if possible (colours in the "Last Update" column, for ex.). If the status is set to "Resolved" before clicking the button, it does the same, but pastes it to line 2 of the RESOLVED tab instead of QUEUE.

- "Edit selected" in the QUEUE tab just cuts the selected line from the QUEUE tab and pastes it in line 2 of the EDIT tab.

View 2 Replies View Related

Finding Last Edited Cell

Oct 25, 2013

Is it possible to find the unsaved data in a spreadhseet/workbook? Or the last cell was edited?

After working on multiple workbooks when I try closing them excel confirms if the changes should be saved or not. I was wondering if there was a way to check what those changes were. If there was a way to find address of the cell that was edited last.

View 3 Replies View Related

Searching And Replacing Edited Data Back Into A Table

Jan 10, 2014

Basically I've got a back end worksheet with a huge table full of data (hundreds of rows, tens of columns) containing the data for a load of different contracts (each contract is on a different row).

I have all the information I want displayed on a front sheet by means of very simple lookups which looks for one contract at a time to display that information. What I would like to do is to be able to alter that information on the front sheet which will then go back and lookup that entry in the big table and overwrite the old data with the new. Effectively I want the excel sheet to act as a user form, but without actually using a form (a requirement from the people I'm doing this for). I'm struggling to find out how to do this as I don't know which VB functions I would need to use.

Each contract has its own unique reference number, so really what I need is some sort of code that will look for that reference number in the back end table, then look for any differences between what's on the front sheet and on the back end, and then replace anything that's changed.

View 4 Replies View Related

Validation To Force Cell Format On Entry

Feb 9, 2007

I have a spreadsheet that I add to daily with 3 Columns that are always the same. Name, ID number and Phone Number.

Is there a way to make it so that when other people in my department use this that no matter how they enter the name, it is always formatted the same. No matter they enter the ID number and phone number they are always formatted the same. I've tried some variations of data validation but couldn't get to where I need to be.

Attached is a simple example.
I'd like the name to always be formatted as Smith, Bob
I'd like the ID Number to always be formatted as xxx xx xxx
I'd like the Phone Number to always be formatted as xxx xxx xxxx

View 9 Replies View Related







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