Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,069
Default Copy cell backgound color to another cell

I have a macro that color codes projects. I want to copy the cell text and
background color from one cell to another. I can copy just the name w/ the
following code:
ProjectName = Range(SumProjList)(i).Value ' pick up the proj name
.....
Range(ToTable)(2, 2).Value = ProjectName ' place name in another place
What do I have to add to copy the background cell color?

I appreciate your help, -John
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 772
Default Copy cell backgound color to another cell

Interior.colorindex gets the color
Range("A1").Interior.ColorIndex
--
-John
Please rate when your question is answered to help us and others know what
is helpful.


"John" wrote:

I have a macro that color codes projects. I want to copy the cell text and
background color from one cell to another. I can copy just the name w/ the
following code:
ProjectName = Range(SumProjList)(i).Value ' pick up the proj name
.....
Range(ToTable)(2, 2).Value = ProjectName ' place name in another place
What do I have to add to copy the background cell color?

I appreciate your help, -John

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
Code to copy cell borders and fill color from one cell to another Chuck M Excel Programming 4 January 10th 08 12:34 PM
How can I copy down, the contents of a cell and not color wade_aus10 Excel Discussion (Misc queries) 3 November 29th 06 12:35 AM
In a function, How do I copy the cell color as well as text Acapulcojo Excel Worksheet Functions 1 September 28th 06 12:35 PM
how may I copy color of a other cell Thierry[_4_] Excel Programming 1 September 30th 04 11:26 PM


All times are GMT +1. The time now is 08:22 AM.

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"