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

Hello,
I am creating format conditions. Then I am trying to updating them. But am
getting an error.

So for example I have this:

Dim x As Excel.FormatConditions
Dim y As Excel.FormatCondition

Set x = Excel.Range("D3").FormatConditions
x.Add Type:=xlExpression, Formula1:="=A1"
Set y = x(1)

'this is causing an error
y.Formula1 "=B2"

is there a way to update the formula? Without deleting and re-adding the
format?

thanks



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default updating Excel.FormatCondition


Greg,

I think the method to use to update a format condition is MODIFY as
in

Worksheets(1).Range("d3").FormatConditions(1) _
.Modify Type:=xlExpression, Formula1:="=A1"

Catherine

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
Determining What FormatCondition Has Been Chosen John/Churchwell Excel Programming 6 August 11th 06 09:34 PM
Excel Updating RichIT Excel Programming 0 August 9th 06 06:11 PM
Excel updating K Excel Discussion (Misc queries) 1 April 14th 06 08:19 PM
updating excel EdLeeYoung Excel Discussion (Misc queries) 0 August 19th 05 04:39 PM
When updating a worksheet, how do I create a link updating the sa. Phlashh Excel Worksheet Functions 9 January 27th 05 06:05 PM


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