Select A List Based On The Color Chosen
Jun 9, 2009
say i have a range of name called Red_Fruit, Blue_Fruit
and i have a box to input the color of a fruit
I want to be able to select a list of fruit based on the color chosen
How would i call back the name if only part of the name changes?
View 6 Replies
ADVERTISEMENT
Sep 27, 2007
Is it possible to have a combo box in excel, where, when an item is selected, it is assigned a colour depending on which item it is? Eg, The combo box list has item 1, and item 2. If I select item1, then the text becomes red, if I select item 2, the text becomes blue. If not possible using combo box, what method can I use?
View 2 Replies
View Related
Jan 14, 2008
I am trying to use combo box to display my data, here are the details. I am having 20 Departments, and have Budget and Actual values for those Departments for each month for the year 2008, tell me the logic to use combo box as dropdown list for Dept. and how can i get values in first 5 to 10 rows after changing the Department in Dropdown list(Combo Box)
View 5 Replies
View Related
Feb 6, 2008
If a specific word is entered in a cell I want a list to show in another cell. This is better explained in an example. In cell A2 I have a validation list of names, eg. Mary, Mary Birth, John, John Birth,. . .) In cell N2 I have another validation list of places , eg. Ireland, England, Wales, USA, Scotland, . . )
In A2 if a name with Birth is chosen then I only want them to be able to choose from Ireland or England.
View 2 Replies
View Related
Apr 21, 2009
My attached files contains stock returns for companies. Each sheet contains the returns over a 5 year period for a certain stock, with the ticker symbol of the stock used as the sheet name. I want to write a sub that presents the user with a user form. This user form should have an OK and Cancel buttons, and it should have a list box with a list of all stocks. The user should be allowed to choose only one stock in the list. The sub should then display a message box that reports the average monthly return for the selected stock.
View 4 Replies
View Related
Mar 17, 2008
See attached spreadsheet, in sheet 1, yellow columns are for restricted cells and Sheet 2 contains the lists for such columns' validation range. Sub-Strategy is dependent on the choice made from Main-Strategy, e.g. if Main-startegy = EquityHedge, then the choices for sub-strategy can only choose Long Biased, Low Beta & opportunistic. But I also have a "Other" category under Main Strategy, Sheet 2 cell G1, if this is chosen then I would like to remove the data validation in the sub-strategy column, (i.e. u can input anything for sub-strategy) how can I do this?
View 2 Replies
View Related
Apr 25, 2008
I am attempting to populate a row of several cells on a worksheet using a drop-down list, using data from a seperate worksheet in the same workbook. The worksheet containing the data will be hidden (I do not think that matters in this case). Do I place a VLOOKUP function in the first worksheet cells? see attached sample
DropDownSample.xls
As a follow-up question, as time goes by, the data in the source worksheet will be appended with new items (additional rows of data). As each new item is added, will I need to edit the formulas, or is there a way for Excel to dynamically add the new data? This might be stretching my wish list a bit but I thought I'd ask.
View 3 Replies
View Related
May 7, 2008
I have a set of data on excel and would like to make searching for it easier.
I have created a drop down list in cell B4 (say, "Banana", "Apples" and "Orange"). Is there a way that if i select "Banana" in cell B4, excel will automatically go to cell A20 ?
View 3 Replies
View Related
Jul 2, 2014
I need VBA code to do the following:
When cell H2 = "Weekly", I need cell I2 to return "50".
When cell H2 = "Bi-weekly", I need cell I2 to return "25".
The value in Column I should change as soon as the value in Column H changes.
NOTE: The value in Column H is chosen from a Data Validation List.
I'm assuming offset is the best option?
View 7 Replies
View Related
Feb 26, 2014
I am hoping to create a drop down list of months in one sheet, and when I select a certain month, columns in about 10 other worksheets in the same workbook will either hide or unhide columns...
The spreadsheet is laid out with columns (C-N) for each month in the year, for actuals, then columns for budget and budget variance (O-P), then YTD Actual, YTD Budget and YTD Variance. When I select September, for example, I want October-December to hide, and leave Jan-Sep unhidden, while keeping the budget, YTD and variance columns.
Is there a VBA code that can achieve this?
View 14 Replies
View Related
Apr 23, 2014
I have a worksheet that when a row changes based on the value of column B, I want to remove all of the formulas found in the row but keep the existing values, and then change the color of the row.
In the sample file attached, when the value is "Closed", that row will keep the existing values and then it gets grayed out. Rows that are still marked "Open" need to retain the formulas in case other information changes.
I have tried copy/paste special using autofiltering but that doesn't work because of the hidden lines. This file changes on a daily basis and I need a quick way to update the file.
SampleFile.xlsx
View 1 Replies
View Related
Feb 28, 2008
I am using the following code to copy all rows that have a cell with a background color to another worksheet. In my first workbook this works just fine. In my new workbook, however; it is not working correctly. There are 111 rows that have a cell with a background color (all the same color). When I run the macro it is only copying the last row that has a colored cell. I have been trying to figure out the reason for the last 3 hours and I give up.
Sub CopyColor2()
Dim rReply As Range, rCell As Range
Dim lCol As Long
Set rReply = Application.InputBox _
(Prompt:="Selct a single cell that has the background color you wish to copy", Type:=8)
View 3 Replies
View Related
Nov 6, 2006
I have a list of country names in a listbox that are populated using another worksheet that has these country names. When I make a selection in the listbox, I want the same country names to be highlighted in the worksheet. I will then be able to run a macro that takes those selected cells as input.
View 3 Replies
View Related
Mar 18, 2008
I am trying to create a data entry form with a text field and a listbox. The list box is populated by another sheet and the text box will be used to enter names. I need to be able to enter a new name, select multiple options from the list box and then click a button to add this info to a sheet in excel.
I have read about changing the list options to allow this etc - the problem is I can't get the results to go back into excel - all I get is a name with nothing from the listbox.
View 4 Replies
View Related
Mar 19, 2009
i mtrying to get a validation list change depending on what is chosen in another list. I have attached an example, Yellow box is my validation and weather List 1 or List 2 in chosen I want the red box to be a choose of the list attached to those options. I've tried to put an If in there but I’m al a loss.
View 3 Replies
View Related
Oct 24, 2008
File attached to show problem
How do I select all the sheets that are Marked Y in column B when the button is clicked?
View 11 Replies
View Related
Oct 30, 2013
I am having an excel sheet where I enter the delivery dates. There are few freezes and restricted dates.
When I am entering the delivery date which falls under the freeze or restricted date, the colour of that cell should change.
How to achieve this either using some macro.
View 4 Replies
View Related
Nov 21, 2012
I am new to VB macros, I am trying to figure out how to color a tab Green based on a selection from a drop down list.
View 9 Replies
View Related
Apr 8, 2013
I have a spreadsheet where user can search for information inside a search box and the appropriate rows are returned using formulas.
I have a drop down list (Category: Model) in the search box as well as a search field (Category: Program, cell D2). Underneath the search box, search rows are returned with column categories: Program, Model, etc.
What I require is that if a user enters the specific program into the search field D2, then the dropdown list would automatically choose which model that program belongs to based on the returned row.
For example, if I typed "engine" into D2 and pressed enter,
Under the records section (Row 14 and beyond), the following record will pop up:
Program
Model
Indicators
Engine
F-16
3a
Based on the record, F-16 would be chosen from the dropdown list. Is there any way this can be done?
View 6 Replies
View Related
Mar 9, 2014
[URL]
I had this posted in Formulas and functions
View 1 Replies
View Related
Nov 27, 2006
I got some code from here on how to display all graph names in a List box and choose which ones to print, but i think some syntax is missing and i'd like to print the charts i've chose, not diplay the msgbox
Private Sub CommandButton1_Click()
Dim intIndex As Integer
Dim strMsg As String
For intIndex = 0 To ListBox1.ListCount - 1
If ListBox1.Selected(intIndex) Then
If ListBox1.List(intIndex, 3) = "TRUE" Then
strMsg = strMsg & "Chartsheet " & ListBox1.List(intIndex, 1) & vbLf
Else
strMsg = strMsg & "Chartobject " & ListBox1.List(intIndex, 0) & " on sheet " & ListBox1.List(intIndex, 1) & vbLf
End If
End If
Next
If strMsg <> "" Then MsgBox strMsg
End Sub
View 6 Replies
View Related
Aug 12, 2006
Need a code to which would update each Pivotfield list given what has been chosen? This is so when some are chosen in one Pivotfield, things that only exist with the removed Pivotfield items are also removed.
View 2 Replies
View Related
Sep 5, 2007
I was wondering if there was a way to create a pop-up list to appear when a user selects a certain cell that would provide the user with a list of (in this particular case) inventory items. The user would select which items they require for the task at hand and the total $$cost of the items would appear in the cell once is is deselected.
View 4 Replies
View Related
Aug 17, 2013
I have created a worksheet with Excel 2007, which includes a pull down list. Within this list are 2000 unique numbers in a separate worksheet this data is pulled from. Is there a way to dim or change the color of numbers previously used so that when the list is used again, it is easier to see where I left off?
View 1 Replies
View Related
Aug 18, 2006
I'm using combo boxes. Initially I used combo boxes from the Forms toolbar, however the text in the combo box was to small. Now I'm using combo boxes from the Control tool bar. However, i would like the link cell to show the number of the entry in the list (like the forms control box) and not the actual entry. Is there an option I need to select in properties, or is there some VB code I can attach to the combo box ?
View 4 Replies
View Related
Jul 16, 2009
I see that IF statements can only be nested 7 times. How do I create a cell that checks to see what item was selected in the dropdown box of 20 different choices and choose a particular cell range depending on what is chosen?
View 9 Replies
View Related
Mar 21, 2009
I am carrying out some sensitivity testing on a model, and would like to greatly increase the speed of the process by being able to call in from a user defined cell a named range, which is then pasted to the right of the cell.
The attached file steps through the process I have in mind.
View 9 Replies
View Related
Aug 1, 2009
I have 20 sheets in a work book (1-20) with similar row details(80 rows)...but the columns have amounts for 12 months. I would like to do a sum if function based on months chosen.
For eg: If I select "sheet 1" and choose month as june...I want the sum of amounts from Jan-June.
View 9 Replies
View Related
May 15, 2008
I have two comboboxs on a userform, both are populated like this:
(ComboBox1 is a different sheet/column)
' Sets Remarks in ComboBox4 Contents
With Worksheets("Data")
Set rng = . Range(.Cells(1, "C"), .Cells(Rows.Count, "C").End(xlUp))
End With
With ComboBox4
.RowSource = rng.Address(external:=True)
End With
The function is that ComboBox1 will populate the names on lets say Sheet1, Column A, and when selected will populate by offset all the other Textboxs, and ComboBoxs.
Textbox1 is a date
ComboBox4 is populated off of items from the data sheet
ComboBox1 is populated off of sheet1 and provides names, then fills the userform fields
In populating the Userform, it fills Combobox4.value by the offset value of the selected name.
That cell does not contain the same info that was loaded into the ComboBox initally, and it does not show it. All other ComboBox entries match preloaded values, and show.
How do I get the ComboBox to display what is in the OffSet cell value, rather than blank because its different?
View 9 Replies
View Related
Sep 8, 2006
Not overly familiar with ComboBoxes but what I want to do is load a ComboBox with data based upon the selection of another ComboBox
Please see attached example.
ComboBox1 - I can get to load.
ComboBox2 - I want to load but only those lines that match the above selection
TextBox - Load with the data on row selected by ComboBox2
View 9 Replies
View Related