The problem is that the cells which need to change are locked and have a object group ontop of them and are not all in one row or column..
The cells which need to change are A4,A5,A6,B6,C6,D6,E6,F6,G6,H2,H3,H4,H5,H6,I6,J6,K2,K3,K4,K5,K6.
It sort of a theme changer for my spreadsheet incase people want a change and can do all of it with one click of a button or maybe click on a cell with the colour on it and have that colour copy itself to the range.
How I can change the background colour of cell C:2 depending on what other cell i click? Below a sample of the code im using Basically when i click B:2 i want C:2 to turn grey with the text on top.... Then when i click B:4 i want C:2 to turn Red.....
Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range) Select Case Target.Address Case Is = "$B$2" Range("D2").Value = "No action needed connector is down" 'change this to suit Case Is = "$B$3"
I'm using this code below to change the background colour of a range of cells:
Code: With .Range("I18:J18") .Locked = False .Pattern = xlSolid .PatternColorIndex = xlAutomatic .Color = 9739376 'RGB(112,156,148) .TintAndShade = 0 .PatternTintAndShade = 0 End With
I am receiving 'Object doesn't support this property or method' errors starting with the highlighted row. I'm unable to understand where I've erred. Note that range I18:J18 are merged.
Is this method an efficient way of simply changing a cell's background colour?
how can I change the following code so that the cell background colour remains the same. the below code unlinks the hyperlinks but deletes the backgroundcolour also of all the cells.
Code: Private Sub Button3_Click() ActiveSheet.Hyperlinks.Delete Range("A7:W100").Select
My boss wants a spreadsheet that has multiple buttons on it that will change the background color of a specific cell to four different colors. Example:
Text written in Cell B3, Button in Cell A3 that will change the Background color of Cell B3 to either Green, Yellow, Red or Blue.
There will be a lot of buttons on this worksheet following the same format as above. I don't want to change the value of what is in the cell, just the background color.
Running into this issue of "transworksheet macros"
I have a master "update" commandbutton on sheet 1. I have two sub "update" buttons on sheet 2 and 3 respectively.
What I would like to do is have the user click the master button, that would "click" the two sub buttons so they run their respective macros on their respective worksheets (within the same worksheet.
I have tried pasting the macro code in the master button, telling it to select the sub worksheet and then run the macro, but the marco runs itself on the master worksheet instead.
I am wanting to create a function, callable from a worksheet, that sets the background colour for any given range of cells to a given RGB value. I am confused about the Color and ColorIndex properties. I'd have thought the following piece of code was trivial and would work but it doesn't.
I want to change the back ground colour of each row until G column when there is a text in the first cell. I have attached the excel that I want the background colour to be. Like suppose, F1 is the details of family 1, F2 is for family 2. I want each family to be coloured. The rows are not fixed for each family. If F1 details are coloured green, Fr is orange, F3 is green and F4 is orange again. And the number F1, F2, F3, F4 and so on are not ordered in ascending. They can be random. But I want the colour coding to be the same as what I have shown in the excel. I have so many rows like that. How do I do that using excel. I have tried conditional formatting. But it doesn't work.
In the IAF tab, last one on sheet, I want to highlight a cell if on the Day tabs there is anything in column E, this will be text e.g. LAD, LE, E, AD, LC or NS, and in the same cell show the number that appears in column J of the day tabs, the excel sheet I'm working is to large to upload, if I delete some of the tabs all of the formulas go out of kilter. If Joe Blogs was at work on Day 1, the corresponding cell in the IAF tab should be yellow, if the supervisor monitored Joe's work on Day 1 the same IAF tab cell should remain yellow and show the number that is placed in column J on Day 1 for Joe Blogs.
I have managed to upload an amended copy of the file : Job PSS MASTER - v3 6 AMENDED.xlsx‎
when i pasted the data into an Excel sheet, the background will change to red and the font will turn to blue. Besides, the font in header will change as well. I can't find the way how to do it because this template is set by other person. I can confirm this is not done by macro.
I need a macro that will change the background colour of a cell depending on whether it equals a certain variant. Let me explain.
Cells D8 to N8 will either equal 1, 2, 3 or 4. Depending on the value of the cells on row 8 (D8:N8) I need the above cells on row 4 (D4:N4) to have a different background colour.
If the cell on row 8 is 1, the cell on row 4 must have a green background. If the cell on row 8 is 2, the cell on row 4 must have a yellow background. If the cell on row 8 is 3, the cell on row 4 must have a red background. If the cell on row 8 is 4, the cell on row 4 must have a blue background.
Therefore, if D8 = 3, D4 will have a red background. If F8 = 2, F4 will have a yellow background. And so on.
I need a macro that when ran changes the background colour of the cell range D4:N4 depeding on the value of the cell 4 rows beneath (D8:N8).
I'm trying to set a conditional formatting to do the following:
If A1 is greater than 1, A2 will change its background colour to green. So the format needs to be in A2.
Basically in A1 is a page number that we have reconciled our bank statement to (labelled as "64" or "65" and so on), A2 has the end of statement amount.
Every month end we do a bank rec, the green cell is a marker to show what point we reconciled up to previous month.
I have some code below which looks at values added between a set range of cells. This works OK.
My problem is when i have to change the cell as it removes the background colour already set to certain columns ie Columns I, J, P, Q, W, X, AD, AE (these are coloured a light green).
The other cells in the range have no colour and so the code below works with no problem.
I need to input values rangeing from 0 to 5. When inputing I want to make the background colour change to a differant colour for each value. I can do it but only for data already in the spreadsheet.
I have five possible reps names in column A, when i type in "peter" i want that row up to column I to have a background colour of yellow, each rep must have his own colour. when i clear the name from column A the row should clear the colour. using conditional formating i can only get the first cell to get a background colour.
I have a large list of students (Col a,b) who do several sports (up to 10) each, which are arranged as sport name (Col c) followed by score (col d), repeated on pairs of columns for the other 9 sports.
I need a macro to find the 4 highest scoring sports for each student in turn and to highlight the score and sport cells. I have tried to find permutations using the LARGE function but I cannot see how I can do this.
I have been working on a spreadsheet but I use autoformat for.
For example if the date in the cell matches today's date then it turns the text read and makes it bold.
I was wondering if there was a way to format several cells in a row if a certain criteria was met.
for example
A B C 1 Item Cost Quantity 2 Car £11,520 2 3 Bike £7,500 1 4 Tyres £50 4
Now for example if I set a condition whereas the quatity is greater than 3 then it would highlight the whole row.
So in the example above I would like to to highlight row 4 and Fill colour cells A4,B4 & C4 with a yellow background and Red Text and make the texted bold.
I am using a userform to collate the information in the "data" sheet and have a unique ref number in column A. Data populates columns A - AC.
In sheet "Mail" I enter the Ref number and it pulls through the info using vlookups into a template which I then e-mail as the body of the text on the click of a macro button.
I wish to capture the date each time the button is clicked in the same data row starting in column AD then AE etc.
I have cobbled all of this together by searching around this forum - I have not expertise so please be gentle with me!
I would like to know whether it is possible to change the background colour of items in a dropdown/combobox on my userform?
I have a series of times at 15 min intervals and i want, if possible, to distingish between 'working hours' and 'non-working hours' by making the background of these numbers 'grey'.
Maybe looping through from 00:00 to 07:00 i.e 28 times (28 x 15min intervals)?
I am using a worksheet to scan or enter students into a school event and determine their eligibility to participate in the event. Everything is working great but I need to do the following on Enter Student button click:
1) Cut scanned value (ID number) from input Cell A1 2) Paste value into next empty cell in column A (Rows build as students are inputted) 3) Copy Eligibility status (text) from column F into A6
I have a limited VBA/Macro background and have NEVER got a button to work.