Solved

Modifying Conditional Format from VBA code

Posted on 2016-11-16
3
54 Views
Last Modified: 2016-11-18
I need to modify the Maximum Value for a Conditional format.

Edit Formatting Rule
How can I accomplish this within VBA code?
0
Comment
Question by:Terry Rogers
3 Comments
 
LVL 49

Accepted Solution

by:
Rgonzo1971 earned 500 total points
ID: 41890119
Hi,

pls try
Sub macro3()
    Range("I3").FormatConditions(1).MaxPoint.Modify newtype:=xlConditionValueNumber, newvalue:=100
End Sub

Open in new window

Regards
0
 
LVL 32

Expert Comment

by:Rob Henson
ID: 41891084
Rather than modifying to a specific number, modify it to refer to a cell. You can then just adjust the value in the cell when you need to modify the value.
0
 
LVL 1

Author Closing Comment

by:Terry Rogers
ID: 41892600
Thank you, this worked as expected. :)
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Modern/Metro styled message box and input box that directly can replace MsgBox() and InputBox()in Microsoft Access 2013 and later. Also included is a preconfigured error box to be used in error handling.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

805 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question