Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default copy the font color

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default copy the font color

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
'<<=============


---
Regards,
Norman


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default copy the font color

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

"Norman Jones" wrote:

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
'<<=============


---
Regards,
Norman



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default copy the font color

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.


---
Regards,
Norman


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default copy the font color

I know formats will copy other things along with color index. Wasn't sure if
Max wanted to use VBA code.

"Norman Jones" wrote:

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.


---
Regards,
Norman





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 40
Default copy the font color

"Joel" wrote in message
...
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" ;-)

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default copy the font color

Thanks Norman,
that's perfect.

Max



"Norman Jones" wrote in message
...
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
'<<=============


---
Regards,
Norman



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy cell and the font color Falcon248 Excel Discussion (Misc queries) 4 January 22nd 10 07:36 PM
Retain font/cell color on lookup/copy JPS Excel Worksheet Functions 3 July 23rd 08 06:30 AM
VBA color picker - copy of Font dialog combo box [email protected] Excel Programming 27 December 5th 06 08:23 PM
Copy Rows that have a Green font color to another worksheet mrdata Excel Programming 6 February 15th 06 11:17 PM
How copy format, font, color and border without copy/paste? Michel[_3_] Excel Programming 1 November 5th 03 04:43 PM


All times are GMT +1. The time now is 01:14 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"