I would like for a vba programmer to tell me if the following program can be written before I attempt to code it. When I open Excel I want to see cells containing names in a square array with red backgrounds. As I click on each cell I want the cell to turn green and I want an alphabetized column of the names to have a 1 recorded(after I click) indicating that the person is present. If a person's name is red then I need a 0 recorded. If possible, I would like to be able move over one column each day that I take attendance by clicking on a cell in a row above the column of names. I am a math professor and I write computer code most every day but I have only written some small routines in vba that did not involve events.
i want the user to be able to change the cell color on the click of a command button. the worksheet is protected. when the user click the command button the active cell changes to red and offsets by 1. then the work sheet is locked again.
The two problems I am having is 1. I want the range to begin from row 10, column k to column FD. all cells down
the second problem is the current code allows me to edit locked cell columns A to J ...
I am trying to set up a double click macro that checks the color index of the exact same cell you double click on, but in another sheet. What would be the syntax for that?
In Excel 2007 I been scanning in the forum for example code. If a cell is clicked on Then highlight the that row from cells A to K. If it is clicked again change it back to no color.
I want to set up a column so that by clicking a cell once it changes value AND color.
For eg a clicked cell changes to green with a value of 1 point, click again it changes orange with a value of 2 points, click again it changes to red with value of 3 point, then finally click again goes back to no fill with nil value.
This would very very useful for marking my candidates results and categorising them by their level of understanding of a question.
I am making a checklist for a Pda program. I need the active cell to highlight green and put an x in it for a specified range. This I have
The next part I cannot figure out - after the cell have been highlighted once, and properly colored with an x, how can I get it to delete the fill and clear the x on the next click.
Dim x As Long Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range) ' Set the highlighted cell to a color. If Not Intersect(Target, Range("d28:d34")) Is Nothing Then Target.Interior.ColorIndex = 4 ' green = true 'Set the highlighted cell to contain a text character If Not Intersect(Target, Range("d28:d34")) Is Nothing Then ActiveCell = "x" End If End If End Sub
I have an attendance file w/least 30 sheets. 29 of the sheets are for each separate group. The other sheet is the main one where I need to collect information like "total participants in attendance" and "total members in group" Then I divide those two and get the percentage of attendance.
The sheets containing the individual groups info are set up like this... (1=they were in attendance)
GROUP 1 Name / January / February / March/ Jess________1________0________1 Ryan_______1________1________0 Joe ________1________0________0 ---------------------------------- total P ____3________1_________1 members___3________3_________3 % _______100_______33________33
I know I can manually go through and link the sums of participation and total group size into the main sheet, but I have a lot of workgroups and need to do this every month, is there an easier way? I am willing to change the set up of the sheets.
I am looking for a very simple script that will achieve the following:
On the clicking of a button, Select and shade in a cell yellow, delete the yellow shading of the previous cell. The shading & selection should move up a column of cells, 1 at a time, in the following order:
From B10 to B9, then B9 to B8, B8 to B7 etc until the selection and shading is at B2. Once it is at B2 subsequent clicks will simply keep it at B2 (the top). Thus after 8 clicks the shading & selection should travel from B10 to B2, with only 1 cell being shaded yellow and selected at any one time.
I must be hitting a key by accident sometimes which makes Excel highlight the cells immediately below the ones I want as well. So, if I click in the middle of cell A1, it also highlights A2, A3 and sometimes A4 even though I haven't dragged down over them.
Why is this? I can't work out how to stop it doing it. Some previously recommended hitting F8 but this doesn't seem to stop it.
I'm trying to double-click a cell to edit the contents, and I am off a few pixels, it treats the double-click as a double-click on the cell border, not the cell contents, and the focus jumps to another cell in the direction of the border instead of going into edit mode. The effect is as if I had pressed Ctrl and the arrow in the direction of the border I clicked on.
The only way I've found to disable this is to turn off the option "Enable fill handle and cell drag-and-drop", but unchecking that also disables actually useful things, like dragging the corner of a formula call to copy it down, etc.
Is there a good way to disable this cell jumping when I accidentally double-click a cell border?
Need a method for launching the color palette from a Button Click event so that the palette opens, the palette may be used to set a color, then have the color palette return the Long INT color value to the calling click event routine?
I am working on a code in which i have to change the color of certain cells if the value of a cell is Y/N. The color should change with the user input.
Set wsheet = wbook.Worksheets("XYZ") For Row_start=10 to Row_count 'Row count is the last used row in the worksheet RowValue = ActiveCell.Row colValue = ActiveCell.Column if colValue = 17
I am trying to color cells with a special value in another cell.
I would like to use the value in K column to sort the color of the rows. As you can see I have done this manually there, but I would like to have it automatic so no one will put wrong color.
I tried to do this in VBE and started to put K7:k37 as range. then I used if formula to find if the correct value is in the cell. But then I had know idea what i was doing so I did some search here but could not find anything that I could use.
I have attached the relevant spreadsheet for which I need to alter the color of the columns based on Site number ( Sheet 1). % Mortality will be represented in the Y-Axis, and the Site numbers would be on the X-Axis. All columns (% Mortality) except one will be of the same color, and the one of a different color will indicate a specific site. As an example, site 86 is colored differently. The way I require the chart to look is shown on Sheet 1.
After reading through some great posts on Ozgrid, I managed to do this using conditional formatting (Sheet 2), but that sort of falls short because I am required to add a data table to the chart, and the parameter that is indicated by the column bars happens to appear twice in the data table.
I was wondering if this can be automated maybe using VBA, but with the possibility of simply matching the color of columns with the font color of respective entry in the data series.
I have a question and wanted to know if it was possibe and if so how. I wanted to link cells from one workbook to another (Which I know how to do) the problem im having is the linking works but why doesnt the cell color chang like it is in the workbook im linking from? Example: If A1 has text (Me) with the cell being green then the linked workbook would only have the text (Me) and not the green cell.
I have 16 columns (B:Q) Row 1 contains either a number, the letter x, or the letter a. Cells in Range("B2:Q628) contains either the letter x or is blank
If a cell in row 1 contains an x, then all cells in that column with an x has an Interior.ColorIndex of 45
If a cell in row 1 contains an a, then all cells in that column with a blank has an Interior.ColorIndex of 45
If a cell in row 1 contains has a number, then nothing
I have a list of numbers in two columns. All I want to do is that if the number in column B is larger than the number in column A I want it to be in red font. I know I need to use the Options>View - Zero Values.", "style="background: ...
I am trying to add a third if statement to my existing code looking to see if a cell in a column is blank and the corresponding cell in another column contains a number that is greater than or equal to 1. I can't figure out how to write that part of my IF statement.
If Cells(r, 4) = " " And Cells(r, 3) >= 1 Then Cells(r, 1).Resize(1, 5).Interior.ColorIndex = 35 Set rng = Union(Cells(r, 1), Cells(r, 3), Cells(r, 4)) rng.Copy Worksheets("Sheet1").Range("G40:I40").End(xlUp).Offset(1, 0).PasteSpecial (xlPasteValues) Application.CutCopyMode = False Cells(r, 5) = "NEW" End If Next r
I want to format a group of cells color based on the value of one referance cell. Example would be: If a1 is adn "X" the the results in cells b1 thru b10 would be green else they would be blue. Is there a way to do this using Excel 97?
I want to highlight the cell of Column 'A' of excel only when it does not contain the text like "Verify", "Validate" or "Evaluate" in its content if, the value in corresponding cell of Column 'B' holds the value 'Y'. Secondly, the column 'A' can't contains the words like 'Verify', 'Validate' and 'Evaluate' if the corresponding cell in Column 'B' holds value 'N'. So just need to highlight those discrepancies if its there.
Column A Column B Expected Action
Press F3 N Its Fine
Verify this.. Y Its Fine
this.... Y Need to Highlight Cell of Column A as Value in Column B is Y but the column A does not contain any value like "Verify", Validate" or "Evaluate"
Verify This. N Need to Highlight Cell of Column B as the Value of Column A contains words like "verify", "validate", "evaluate" but corresponding cell value in column B does not hold value "Y".
I want to change the fill color of all cells on my sheet, based on the value of one specific cell. In my sheet, I am using cell F1 as the trigger for the change. If the word Blue is in the cell, I want the background color of all cells to be Blue. Likewise for Red and Yellow as well. I don't believe conditional formatting can get this done, as all but the one cell (for this) will be empty.
Afternoon everyone i am having abit of trouble working on an excel 2007 spreadsheet. In cell I1 i have a tab called Color. i want the cells below I1 to be filled with one of 3 colors green, yellow, or red depending on whats in cell F "Status" (closed or open - in progress) and cell G ECD for estimated completion date.
Green - i need it to fill green if status is closed. Yellow - need it to fill yellow if ECD is any date greater than today and if status is open. Red - need it to fill red if ECD is todays date or older and status is open.