Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 271
Default FormatConditions

I recorded a macro on Excel 2007. I needed to remove condiditional formats
and then add a different one. When I looked at the code it added several
lines with "FormatConditions". This code works good on Excel 2007 but
several of our computers run Excel 2003 or even Excel 1997. When these older
versions run this code it gets and "object not supported" error. Is there an
easy way to alter the code or am I going to have to record it in one of the
older versions?
--
Thanks
Shawn
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 257
Default FormatConditions

There's an easy way to change the code, Shawn - you just go to the Visual
Basic Editor and change it there - but the real problem is diagnosing exactly
what to change it to. For that you need to understand a little about
VBA/Excel 2003 and 1997. You can probably tweak the code to tell you exactly
which object is causing the problem, but you need to read the VBA/Excel
references to tell you how to write it differently. I suppose the earlier
versions organize the conditional-format objects differently than in 2007.

--- "Shawn" wrote:
I recorded a macro on Excel 2007. I needed to remove conditional formats
and then add a different one. When I looked at the code it added several
lines with "FormatConditions". This code works good on Excel 2007 but
several of our computers run Excel 2003 or even Excel 1997. When these older
versions run this code it gets and "object not supported" error. Is there an
easy way to alter the code or am I going to have to record it in one of the
older versions?

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
REPOST: Need help with XL2007 FormatConditions, please? Ed from AZ Excel Programming 3 August 13th 08 05:20 PM
excel2k FormatConditions question L@ja Excel Programming 5 January 30th 08 10:24 AM
What is the parameter for FormatConditions? J@Y Excel Programming 2 May 29th 07 05:21 PM
FormatConditions VBA Bug? DaveCrowley Excel Programming 7 May 24th 06 09:52 PM
FormatConditions(1).Formula1 Stefi Excel Programming 9 February 17th 06 10:37 AM


All times are GMT +1. The time now is 01:49 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"