#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 342
Default copy colour

If you are familiar with VBA (Macros) the following code will copy the color
of F7 to A1 on the active worksheet:

Sub copycolor()

ActiveSheet.Range("A1").Interior.ColorIndex =
ActiveSheet.Range("F7").Interior.ColorIndex
ActiveSheet.Range("A1").Interior.Pattern =
ActiveSheet.Range("F7").Interior.Pattern

End Sub

If you are not familiar with VBA then more information about what you are
trying to do would be necessary.

Tom

"assaf1978" wrote:

Hi,
How can I copy a colour of a cell to another cell, using a function or a
macro?

Thanks,
Assaf.

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 colour Sheeloo Excel Discussion (Misc queries) 0 August 27th 08 08:43 PM
How to make a cell copy the fill colour of another cell Chase Excel Worksheet Functions 1 February 21st 08 10:29 AM
How to make a cell copy the info from another (background colour i whrs09 New Users to Excel 1 November 29th 07 01:31 AM
excel - formula to copy the cell contents and colour. Possible? Jason Excel Discussion (Misc queries) 3 August 24th 07 10:05 PM
How do I save new colour schemes for graphs in the colour template Alison Charts and Charting in Excel 1 July 22nd 06 10:35 PM


All times are GMT +1. The time now is 12:11 PM.

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

About Us

"It's about Microsoft Excel"