Selecting Cell A2 Will Highlight/change Font In Cell A1

Jun 18, 2006

How can I change the font color or highlight cell A1, when I select cell A2. Cell A2 is still blank, no value entered yet. I also would like cell A1 to return to original font color or no hightlight when cell A2 is no longer selected (active), whether a value is entered or not in cell A2. Let me clearify, (A1 thru N1) and (A3 thru N3) have diferent dates and the font color is white, as is the cell too. Therefor you can not see the dates in (A1 thru N1) or (A3 thru N3).

However, when any cell (A2 thru N2) or (A4 thru N4) is selected (example A4), the cell above it (cell A3) changes font color or highlights, so the date can be seen in (A3). But when cell (A4) is no longer selected the above cell (A3) hides the date (changes back to white font on white cell). Data or a value is not necessarily entered into (A4) for (A3) to change. (A4) is only selected to show the date in (A3). But if data or value is entered into (A4), the date in (A3) will still be seen until (A4) is no longer selected/active.

View 4 Replies


ADVERTISEMENT

Cell Bold And Font Size 12 And Highlight In Red

Mar 6, 2008

I am using this formula (Below) and it is working great. Only problem is that I want the client name to be be bold and font size 12, then I want it to highlight in Red. I also want the rows in colunm L to highlight in bright green.

Sub InputData()
Dim varUserInput As Variant
Dim LastRow As Integer

LastRow = Cells(Rows.Count, "G").End(xlUp).Row + 1

varUserInput = InputBox("Enter client name:", _
"Client Name", "")
If varUserInput = "" Then Exit Sub
Range("G" & LastRow).Value = varUserInput
Range("G" & LastRow + 20).Value = "Total".......................

View 9 Replies View Related

How To Highlight Entire Row When Selecting A Cell

Feb 23, 2013

Is there a way to highlight and entire row automatically every time we select a cell on that same row?

I have 20 columns of data and it's a mess when when need to scroll to the left or right since I lose sight of the selected cell and then I can't see which the row I want to check.

View 4 Replies View Related

Change Cell And Font Color Using VBA

Sep 4, 2008

This appears to be so simple, I've searched the forums and have found almost the right VB code but not quite.
I have a 3000 row spreadsheet with various columns.
Column M can either be PASS, FAIL, REJECTED, IN PROGRESS or NOT ASSESSED.
I need the rows (A to M inclusive) to change colour and text colour dependent on this condition.

I almost had an answer with Select.Case but I couldn't get the formula to work with text, only numbers.

View 9 Replies View Related

Change Font Type Based On Cell Value

Aug 25, 2014

I have a workbook that includes a drop down list with three options. One of the options is "TA". The default font type for these cells is "Wingdings" but when "TA" is chosen I want the Font Type to change to "Arial".

View 11 Replies View Related

Shortcut To Change Font Color In Cell?

Mar 7, 2013

I'm working on a sheet. i should have blue and black font colors random. if i can have macro shortcut for blue and black, would save loads of my time.

View 6 Replies View Related

Change The Font.colorindex Of The Cell In Column

Dec 9, 2009

I have some code that runs through about 5000 rows of data looking at duplicates for column A. instead of deleting the duplicate rows, i change the font.colorindex of the cell in column a so that all cells containing xx are one color, and all cells containing xxx are colorindex+1.

Since i have about 5000 rows, colorindex limits itself to 122 (i msgbox'd each time and this is the last number i got before the subscript out of range).

Is there anyway around this, or is there a better way to pickout duplicates. remember, i can't delete duplicates, i need a way to manipulate the duplicates data once i pick them out.

View 9 Replies View Related

Change Font Color If Another Cell Is Blank

Jan 18, 2008

I have a table - the first column is quantity, the others are descriptions, prices, etc.

I need to change the font of the other columns to white if the quantity cell is empty.

Jennifer Auto Merged Post;I'm still working on this, making baby steps. This is my code so far:

If Range("B26") = IsBlank Then
Range("C26:K26").Select
Selection.Font.ColorIndex = 2
End If

It works for line 26. Can someone give me a hint about how to make it do the same things for lines 27 through 62? Without having 35 IF statements in my code?

View 7 Replies View Related

Font Color Of A Cell Will Change Upon Editing Data

Nov 12, 2013

I have a database which I want to send to my peers. I want to set a rule which will enable me to keep track of the data which are changed. For instance, in a cell if someone edit that number, the color will change from black to red.

View 7 Replies View Related

Conditional Formatting :: Change Font Color Of Cell

Mar 5, 2007

Cell B157 is changed by checkbox 1= TRUE, 0 = FALSE
Cell H1 and Cell H2 are percentages changed by the user.

Range(AI8:AQ8,AI12:AQ12,AI16:AQ16,AI20:AQ20, etc) each cell in the range contains a formula, and is protected from the user.

I need the contents of each cell in the range to change font color (independent of each other) when the formula of any of the cells within the range changes - to the following

If B157 = 1

Cells < H1 (a percentage changed by user), would turn Red
Cells > H1 but < H2 (a percentage changed by user) would turn Yellow
Cells > H2 would be Green

If B157 = 0

Cells < H1 (a percentage changed by user), would turn Green
Cells > H1 but < H2 (a percentage changed by user) would turn Yellow
Cells > H2 would be Red

I need it to fire whenever the value of one of the cells in the range changes.

I have tried If statements, Select Case, and a combination of both but just can't get it!

View 9 Replies View Related

Change Cell Font Type If Condition True

Apr 26, 2008

I would like to know if there is a way to change the font type in a cell, if a condition is true in another cell. e.g font in cell C3 is Arial Rounded MT Bold and if condition is true in cell F3 then font is changed to Arial Narrow.

View 8 Replies View Related

Use Conditional Formatting To Change Font Size Based On Value Of Cell?

Jul 18, 2013

I am trying to set up conditional formatting in cell C4 to change the font to a smaller number based on the value of C4. If C4 = 0 then Font Calibri 16, otherwise Font Calibri 24. However, the font size is not availabe, it is greyed out. Is there another way to accomplish this without using VBA? In the worksheet could I use an if() statement to change the font size?

View 6 Replies View Related

Formula Or Macro To Change Font Color For Each Cell In Range

Aug 12, 2009

I have a spreadsheet that contains the 5 digit numbers in the rows and the columns respecstively. I'd like a formular or macro to change font color for each cell. If the combined value of the 5 rows are greater or less than the combined range 87030 and 87200, the 5 cells will be changed to Red. If:.........

View 4 Replies View Related

Change Font Of Text In One Cell Based On Information Entered In Another

Apr 28, 2008

if a macro or private macro is necessary, I would need basic instruction how to use those as well (I mentioned private macro as I understand they automatically run whenever worksheet info is changed, which I would like in this example.)

I'm simply trying to change fonts in cells based on the inputs of other cells. Obviously, using conditional formatting doesn't allow for this.

For my example, assume the word "MrExcel" is in cells D2, F2, H2, J2, L2, N2, P2 and R2. If I type different font names (Times New Roman, Arial, Bookman, etc.) in the cells to the immediate right of each word "MrExcel," -- cells E2, G2, I2, K2, M2, O2, Q2 and S2 -- I would like the "MrExcel" word in each corresponding cell changed to the corresponding font to the right. I would like the ability to do this for up to 15 different fonts. There will be many rows to this worksheet I need to use this process for.

Is this possible? I'm in a bit of a jam and have exhausted my knowledge of formulas in that they won't work in this case ... I'm assuming I need to delve into the unknown land (to me) of macros, private macros, or VBA.

View 9 Replies View Related

If Cell In Specific Column Contains Value Then Bold And Change Font Color For Entire Row

Mar 27, 2013

I'm trying to have a macro run to search a specific column (S) for a particular text value "y" and if true it will change the font to bold and the color to red for the entire row of the cell that contains the "y". the column is part of a data table that is constantly refreshed not sure if that makes a difference or not.

View 2 Replies View Related

Change A Cell's Contents By Selecting Another Cells

Jan 8, 2009

what i need is to affect the contents of cell c3.

if i select cell e15 i would like cell c3 to read 123
if i select cell e17 i would like cell c3 to read 234

i believe this could be done using an cell formula if statment but due to teh number of cells i wish to have affect c3 a vba based solution would be required.

i've built an if satement to do this under worksheet activate but not sure how to use the worksheet change way

View 9 Replies View Related

Conditional Formatting - Change Value Font Color In Cell Based On Matching Text?

Jun 26, 2013

Via conditional formatting, I am searching to change the color of a specific word in a cell (not the color of everything in the cell, but only that specific word - and the word repeats in the cell). A function such as =isnumber(search("NOK";A1)) colors all the cell values, which I do not want to do. How i can perform this task?

View 1 Replies View Related

VBA Code To Change Font Colour Of Cell Referenced Letter Strings Within Range Of Cells

Jun 13, 2014

I am working on a spreadsheet for work, and have managed to do everything I need to so far but I need to colour specific letter strings, certain colours within a range of cells (each letter string will only appear once on each sheet)

The strings I will be looking for vary depending on data entered so I will need to cell reference them

The strings that need colouring are in cells with other strings that must stay black (They cannot be separated from other strings due to the nature of the grid)

I need some strings red, some green, and some blue.

These changes should also apply to the whole workbook not just one sheet.

Is there a way to do this with the VBA code.

View 3 Replies View Related

Keyword Search - Macros To Change Font Color For Specific Keywords (not Entire Cell)

May 5, 2014

I need to conduct keyword searches in excel and color the keywords a different color without changing the font color of the entire cell. now, i found some code from another thread that does this, but i cant seem to get it to work with more than 2 keywords. i need fine-tuning the provided code to do what i need it to do.

[URL]

the VBA code i used was this:

[Code].....

I was playing around with the example, the Cat_Mouse.xlsm, and when i modified the 'myList' and 'myColor' arrays, it does not work.

Cat_Mouse.xlsm

For example, I modified the code to add the word bat:

[Code] .....

When i run the macros, the word "Bat" does not become colored red. interestingly enough, when i substitute the word "bat" for the word "hat" in the "myLIST array, the word "hat" does change to the red font.

I am looking to use this code to address keywords in my excel file by coloring all key words red and i have more than 10 key words.

View 9 Replies View Related

Highlight Or Change The Color Of A Cell Based On The Date

May 10, 2007

I looked around at some date functions and could not find one to work.

I have a sheet that has 365 days. When I load the sheet I want to cell for today to be highlighted in some way..... color or just active.

If date = 05-10-2007 then
BackgroundColor = 17
else
BackgroundColor = 9
end if

View 9 Replies View Related

Change The Background Or Highlight (instead Of Bold Border) The Active Cell

Jul 4, 2007

As i navigate excel, I was wondering how to change the background or highlight (instead of bold border) the active cell?

View 3 Replies View Related

Excel 2003 :: Formula To Highlight Duplicate Cells And Change Cell To Red

Aug 19, 2013

I am using excel 2003 and I am looking for a formula that will highlight duplicate cells and change the cell to red.

Unlike newer versions that have duplicate cells within the formatting tool, appears that 03 doesnt.

Also I am looking for a formula that will highlight blue a date cell when the date arrives.

View 9 Replies View Related

Change Font Color Based On Adjacent Cell Color

Apr 18, 2008

I have two columns. The first one (A) contains cells that have different Fill colors. The second column (B) contains text adjacent to the colored cells. I am trying to change the color of the text in the second column (B) to the corresponding color in the adjacent cell in the first column (A). I don't think conditional formating works well in this situation. I believe the solution would be some sort of macro.

View 3 Replies View Related

Change Font Color If Cell Color Become Yellow (6)

Jul 9, 2009

I have font color white in blank cells in column E and I (from row 5 to row 245) so the visitors will not see the text. If any of these cells become yellow (color code is 6), the font color will become black so visitors can see the text alot far better than white. I've tried this code myself after this post but nothing happen

View 4 Replies View Related

Selecting Font Size Of Text In A Shape

Sep 21, 2012

I'm trying to select the font size of a text in a created shape. My actual code is not working.

Code: ActiveSheet.Shapes("Rectangle 46").TextFrame.Font.Size = 8

What is the proper way to address it?

View 1 Replies View Related

Formating A Cell And Cell Font Color

Jun 5, 2006

i am use exl2000 and i made a workbook with password protection. 2 sheets are in this workbook. one sheet is password protected and second is not protected. i want to change the cell color and font color (Cell is locked) in protected sheet. i want to give only content protection and user cannot delete the text but he will change the color of text.

View 6 Replies View Related

VBA - Selecting Active Cell And Working Back To Specific Cell Range?

Jul 2, 2014

I have a form that loads and depending on the word selected in the drop down the following code loops through cells Q2:AC2 until it finds the word in one of those cells (the word will always be in one of the cells)

Code:
For Each c In Range("Q2:AC2").Cells
If c = period Then
c.Select

[Code]...

The active cell it finds will always change, i know I need something to code the active cell back but I don't know what it should be.

View 5 Replies View Related

Selecting Only Alpha Characters From Cell 1 And Merge Another Cell?

Sep 28, 2013

I have an index of 80,000 names from an index. Some names appear in multiple volumes and on multiple pages within a volume. While the name is the same, they are different people. The Roman numeral is the volume and the numeric is the page number.

Example of original data: Joe Shmoe V-225, 310 VIII-22, 86, 110

I have separated the data into separate columns. Now I have:

Col 1 Col 2 Col 3 Col 4 Col 5 Col 6
Joe Shmoe V-225 310 VIII-22 86 110

At this point, I want to combine the Roman numeral in Col 2 with Col 3 and 4 and combine the Roman numeral in Col 4 with Col 5 and 6.

There are way too many records for me to manually enter the Roman numeral where missing.

View 7 Replies View Related

Selecting From Cell Till Penultimate Cell

Mar 19, 2013

My data I need to copy begins as always from cell A5 and keeps going till A16.

I need to copy this data but only from A5 to A15. I always delete the last cell.

The number of rows is not always the same. Sometimes my data runs till A26.

How can I copy this data except the last row?

View 2 Replies View Related

When Selecting A Cell I Want A Message To Display The Value Of Another Cell

Mar 31, 2009

What I want to do is very similar to a Data Validation message, where a message pops up when you select a the cell. I want that message to be the value of another cell in the same worksheet.

I would also be open to a solution where you simply mouse over a cell to see a comment/message.

View 9 Replies View Related







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