copy the font color

  • Thread starter Thread starter Max Bialystock
  • Start date Start date
M

Max Bialystock

How can I copy the font color (and only the font color) from A1 to B1?
 
Hi Max,
How can I copy the font color (and only the font color) from A1 to B1?

Try:

'=============>>
Public Sub Tester()
With ActiveSheet.Range("A1")
.Offset(0, 1).Font.ColorIndex = .Font.ColorIndex
End With
End Sub
'<<=============
 
Copy - Paste Sprecial can copy only formats. The color index is a type of
format.
 
Hi Joel,

'----------------
Copy - Paste Sprecial can copy only formats. The color index is a type of
format.

'----------------

The OP's question explicitly specified:

" ... copy the font color (and only the font color) ..."

- hence my response.
 
I know formats will copy other things along with color index. Wasn't sure if
Max wanted to use VBA code.
 
Joel said:
I know formats will copy other things along with color index. Wasn't sure
if
Max wanted to use VBA code.

Perhaps he wants to colour to "Bloom" ;-)
 
Thanks Norman,
that's perfect.

Max



Norman Jones said:
Hi Max,


Try:

'=============>>
Public Sub Tester()
With ActiveSheet.Range("A1")
.Offset(0, 1).Font.ColorIndex = .Font.ColorIndex
End With
End Sub
'<<=============
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Happy Birthday TriplexDread 5
Happy Birthday Quadophile 5
Happy Birthday nivrip 9
Happy Birthday bodhi 3
Happy Birthday bodhi 6
Happy Birthday V_R 3
Happy Birthday Ian 4
Happy Birthday @Ian 7

Back
Top