PC Review


Reply
Thread Tools Rate Thread

Conditional Format on copied worksheet stop working

 
 
Larry
Guest
Posts: n/a
 
      4th Jun 2007
I have a "template" worksheet, which I copy to other worksheets in VBA
using the Worksheet.Copy method.

The template worksheet has conditional formatting applied to many
cells. When the copy is made, the code then puts values into certain
cells based on a database query.

The strange thing is, the conditional formating does not always kick
in. The formatting just says things like "cell value is less than 1"
set color to red, that kind of thing.

When the copy and populating the data is complete, the value may have
a 1 but also have the color (it's supposed to be normal if it's 1 or
higher).

Is there something I need to do to activate or trigger the conditional
formatting? The formatting works, because if I go to that cell and
change it to 0, then back to 1, the color is fine. It's just not
working when the code copies the template and puts the data in cells.

Any ideas?

Thanks,
Larry

BTW, Excel XP and Windows XP

 
Reply With Quote
 
 
 
 
Norman Jones
Guest
Posts: n/a
 
      4th Jun 2007
Hi Larry,

Try:

Tool | Options | Calculation | Automatic


---
Regards,
Norman


"Larry" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I have a "template" worksheet, which I copy to other worksheets in VBA
> using the Worksheet.Copy method.
>
> The template worksheet has conditional formatting applied to many
> cells. When the copy is made, the code then puts values into certain
> cells based on a database query.
>
> The strange thing is, the conditional formating does not always kick
> in. The formatting just says things like "cell value is less than 1"
> set color to red, that kind of thing.
>
> When the copy and populating the data is complete, the value may have
> a 1 but also have the color (it's supposed to be normal if it's 1 or
> higher).
>
> Is there something I need to do to activate or trigger the conditional
> formatting? The formatting works, because if I go to that cell and
> change it to 0, then back to 1, the color is fine. It's just not
> working when the code copies the template and puts the data in cells.
>
> Any ideas?
>
> Thanks,
> Larry
>
> BTW, Excel XP and Windows XP
>



 
Reply With Quote
 
Larry
Guest
Posts: n/a
 
      5th Jun 2007
On Jun 4, 3:15 am, "Norman Jones" <normanjo...@whereforartthou.com>
wrote:
> Hi Larry,
>
> Try:
>
> Tool | Options | Calculation | Automatic
>
> ---
> Regards,
> Norman
>
> "Larry" <llj...@netscape.net> wrote in message
>
> news:(E-Mail Removed)...
>
>
>
> >I have a "template" worksheet, which I copy to other worksheets in VBA
> > using the Worksheet.Copy method.

>
> > The template worksheet has conditional formatting applied to many
> > cells. When the copy is made, the code then puts values into certain
> > cells based on a database query.

>
> > The strange thing is, the conditional formating does not always kick
> > in. The formatting just says things like "cell value is less than 1"
> > set color to red, that kind of thing.

>
> > When the copy and populating the data is complete, the value may have
> > a 1 but also have the color (it's supposed to be normal if it's 1 or
> > higher).

>

Thanks, I have Automatic turned on and that doesn't help.

I also tried hitting the F9 button to cause it to calculate and that
didn't do it either.




> > Is there something I need to do to activate or trigger the conditional
> > formatting? The formatting works, because if I go to that cell and
> > change it to 0, then back to 1, the color is fine. It's just not
> > working when the code copies the template and puts the data in cells.

>
> > Any ideas?

>
> > Thanks,
> > Larry

>
> > BTW, Excel XP and Windows XP- Hide quoted text -

>
> - Show quoted text -



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can you link a conditional format symbol to another worksheet? Christy Microsoft Excel Misc 0 4th Mar 2010 06:32 PM
How To Stop Excel Copying Named Functions When A Worksheet Is Copied? Wayne Microsoft Excel Worksheet Functions 2 19th Feb 2009 02:15 AM
Re: Set a conditional format on value in another worksheet? Gord Dibben Microsoft Excel Misc 0 18th Jan 2007 09:10 PM
Re: Set a conditional format on value in another worksheet? Bernard Liengme Microsoft Excel Misc 0 18th Jan 2007 08:13 PM
Copied worksheet not working aksaunders@affiniongroup.com Microsoft Excel Misc 0 15th Jun 2006 08:01 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:27 AM.