Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / November 2007

Tip: Looking for answers? Try searching our database.

Vba - conditional formating

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
nir020 - 27 Nov 2007 16:54 GMT
Is it possible to write some code to disable condtional formatting and then
later to on re-enable conditional formatting.>?
Bob Phillips - 27 Nov 2007 18:05 GMT
application.CommandBars(1).Controls("Format").Controls("Conditional
Formatting...").enabled=false

enabling should be obvious

Signature

---
HTH

Bob

__________________________________________
UK Cambridge XL Users Conference 29-30 Nov
http://www.exceluserconference.com/UKEUC.html

(there's no email, no snail mail, but somewhere should be gmail in my addy)

> Is it possible to write some code to disable condtional formatting and
> then
> later to on re-enable conditional formatting.>?
Chip Pearson - 28 Nov 2007 00:25 GMT
> application.CommandBars(1).Controls("Format").Controls("Conditional
> Formatting...").enabled=false

As I understood the question, the user wanted to disable/enable the *action*
of CF, not disable/enable the creation of CF formats. I do not believe it is
possible to prevent a CF format from being applied if the condition is met.
There is nothing analogous to EnableEvents for CF.

Signature

Cordially,
Chip Pearson
Microsoft MVP  - Excel, 10 Years
Pearson Software Consulting
www.cpearson.com
(email on the web site)

> application.CommandBars(1).Controls("Format").Controls("Conditional
> Formatting...").enabled=false
[quoted text clipped - 4 lines]
>> then
>> later to on re-enable conditional formatting.>?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.