Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 45
Default Copy Cells Fill Color

I have a spreadsheet extract that changes from month to month. Sometimes it
is 750 lines, sometimes 800 lines or 900 and sometimes 600.

Column A is sometimes a different color than columns B to I (these are the
only columns I'm concerned with).

I would like columns B to I to be the same color as column A.

I run a simple Macro to format print settings and column widths and so
forth. I'm hoping there is an easy code I can throw into the Macro to do the
Cell color too.

Any suggestions?

Thanks in advance!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 45
Default Copy Cells Fill Color

Shoot ... one thing I forgot.

A1 could be a different color than A2 and A3 and so forth and so on. So B1,
C1, D1, E1, F1, G1, H1, I1 should all be the same as A1 and B2 ... I2 should
be the same as A2 and so forth and so on. I don't know if that will make a
different but it might. :) Again thanks in advance for any assistance.



"FrankM" wrote:

I have a spreadsheet extract that changes from month to month. Sometimes it
is 750 lines, sometimes 800 lines or 900 and sometimes 600.

Column A is sometimes a different color than columns B to I (these are the
only columns I'm concerned with).

I would like columns B to I to be the same color as column A.

I run a simple Macro to format print settings and column widths and so
forth. I'm hoping there is an easy code I can throw into the Macro to do the
Cell color too.

Any suggestions?

Thanks in advance!

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 45
Default Copy Cells Fill Color

Anyone?

"FrankM" wrote:

I have a spreadsheet extract that changes from month to month. Sometimes it
is 750 lines, sometimes 800 lines or 900 and sometimes 600.

Column A is sometimes a different color than columns B to I (these are the
only columns I'm concerned with).

I would like columns B to I to be the same color as column A.

I run a simple Macro to format print settings and column widths and so
forth. I'm hoping there is an easy code I can throw into the Macro to do the
Cell color too.

Any suggestions?

Thanks in advance!

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Copy Cells Fill Color

How does column A gets its colors?


Gord Dibben MS Excel MVP


On Wed, 4 Feb 2009 12:08:16 -0800, FrankM
wrote:

Anyone?

"FrankM" wrote:

I have a spreadsheet extract that changes from month to month. Sometimes it
is 750 lines, sometimes 800 lines or 900 and sometimes 600.

Column A is sometimes a different color than columns B to I (these are the
only columns I'm concerned with).

I would like columns B to I to be the same color as column A.

I run a simple Macro to format print settings and column widths and so
forth. I'm hoping there is an easy code I can throw into the Macro to do the
Cell color too.

Any suggestions?

Thanks in advance!


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 45
Default Copy Cells Fill Color

Gord, Thank you for replying. column A gets its color from the database
extract. I don't know why the database choose to only fill column A. But
since I am using a Macro to format the sheet and set the Print settings, I
was hoping I could also use the Macro to color columns B:I with the same
color from column A.


"Gord Dibben" wrote:

How does column A gets its colors?


Gord Dibben MS Excel MVP


On Wed, 4 Feb 2009 12:08:16 -0800, FrankM
wrote:

Anyone?

"FrankM" wrote:

I have a spreadsheet extract that changes from month to month. Sometimes it
is 750 lines, sometimes 800 lines or 900 and sometimes 600.

Column A is sometimes a different color than columns B to I (these are the
only columns I'm concerned with).

I would like columns B to I to be the same color as column A.

I run a simple Macro to format print settings and column widths and so
forth. I'm hoping there is an easy code I can throw into the Macro to do the
Cell color too.

Any suggestions?

Thanks in advance!





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Copy Cells Fill Color

I can't believe that a data extract from a database would bring in colored
data.

Does column A contain Conditional Formatting?

If so, can you copy that CF to columns B:I


Gord

On Wed, 4 Feb 2009 16:05:56 -0800, FrankM
wrote:

Gord, Thank you for replying. column A gets its color from the database
extract. I don't know why the database choose to only fill column A. But
since I am using a Macro to format the sheet and set the Print settings, I
was hoping I could also use the Macro to color columns B:I with the same
color from column A.


"Gord Dibben" wrote:

How does column A gets its colors?


Gord Dibben MS Excel MVP


On Wed, 4 Feb 2009 12:08:16 -0800, FrankM
wrote:

Anyone?

"FrankM" wrote:

I have a spreadsheet extract that changes from month to month. Sometimes it
is 750 lines, sometimes 800 lines or 900 and sometimes 600.

Column A is sometimes a different color than columns B to I (these are the
only columns I'm concerned with).

I would like columns B to I to be the same color as column A.

I run a simple Macro to format print settings and column widths and so
forth. I'm hoping there is an easy code I can throw into the Macro to do the
Cell color too.

Any suggestions?

Thanks in advance!




  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 45
Default Copy Cells Fill Color

I don't know what to tell ya ... there is cdolor from the extract. I'm not
sure how it gets in there. I don't believe there is Conditional Formatting.

I'm surprised that some VBA wouldn't be able to copy the fill color but I
found a work around. I put some code in the Macro that copies the format of A
and does a Paste Special of the format into B:I. Unfortunately it also
changes the font format but I can live with that.

Thanks a lot for your assistance.

"Gord Dibben" wrote:

I can't believe that a data extract from a database would bring in colored
data.

Does column A contain Conditional Formatting?

If so, can you copy that CF to columns B:I


Gord

On Wed, 4 Feb 2009 16:05:56 -0800, FrankM
wrote:

Gord, Thank you for replying. column A gets its color from the database
extract. I don't know why the database choose to only fill column A. But
since I am using a Macro to format the sheet and set the Print settings, I
was hoping I could also use the Macro to color columns B:I with the same
color from column A.


"Gord Dibben" wrote:

How does column A gets its colors?


Gord Dibben MS Excel MVP


On Wed, 4 Feb 2009 12:08:16 -0800, FrankM
wrote:

Anyone?

"FrankM" wrote:

I have a spreadsheet extract that changes from month to month. Sometimes it
is 750 lines, sometimes 800 lines or 900 and sometimes 600.

Column A is sometimes a different color than columns B to I (these are the
only columns I'm concerned with).

I would like columns B to I to be the same color as column A.

I run a simple Macro to format print settings and column widths and so
forth. I'm hoping there is an easy code I can throw into the Macro to do the
Cell color too.

Any suggestions?

Thanks in advance!




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
Fill/Copy Up to fill blank cells. J.W. Aldridge Excel Programming 3 September 26th 08 05:01 PM
change fill color of a range of cells based on color of a cell? DarMelNel Excel Programming 0 March 2nd 06 06:35 PM
HOW TO FORMATE CELLS TO COUNT CELLS WITH A FILL COLOR? Moore New Users to Excel 1 June 15th 05 06:41 PM
Excel 2003 will not display color fonts or color fill cells DaveC Excel Worksheet Functions 1 April 11th 05 04:38 PM
My excel 2003 wont let me fill cells with color or color the tabs. trizog New Users to Excel 2 February 22nd 05 06:43 PM


All times are GMT +1. The time now is 03:32 PM.

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"