Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi
I am looking to copy the contents from one cell to another depending on the font colour. ie if i have information in cell A1 which turns to red then the information is then copied to B1? I have tried using basic vba code under Worksheet change but its not working properly. I would like the info copied when the font colour changes not the actual text. Below is the code i tried. Thanks alison Option Explicit Private Sub Worksheet_Change(ByVal Target As Range) Range("A1").Select If Range("a1").Font.ColorIndex = 3 Then Selection.Copy Range("D1").Select ActiveSheet.Paste Application.CutCopyMode = False End If End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
textBox font colour the same as cell font colour???????? | Excel Discussion (Misc queries) | |||
copy cell font colour to textbox? | Excel Discussion (Misc queries) | |||
Changing font colour depending on cell value | Excel Worksheet Functions | |||
excel - formula to copy the cell contents and colour. Possible? | Excel Discussion (Misc queries) | |||
colour of a row depending on cell value | Excel Discussion (Misc queries) |