Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default Vba - conditional formating

Is it possible to write some code to disable condtional formatting and then
later to on re-enable conditional formatting.?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Vba - conditional formating

application.CommandBars(1).Controls("Format").Cont rols("Conditional
Formatting...").enabled=false


enabling should be obvious

--
---
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)



"nir020" wrote in message
...
Is it possible to write some code to disable condtional formatting and
then
later to on re-enable conditional formatting.?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Vba - conditional formating


application.CommandBars(1).Controls("Format").Cont rols("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.

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

"Bob Phillips" wrote in message
...
application.CommandBars(1).Controls("Format").Cont rols("Conditional
Formatting...").enabled=false


enabling should be obvious

--
---
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)



"nir020" wrote in message
...
Is it possible to write some code to disable condtional formatting and
then
later to on re-enable conditional formatting.?




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
Conditional Formating JBoyer Excel Discussion (Misc queries) 3 July 8th 08 12:00 AM
Conditional Formating Peco Worker Excel Worksheet Functions 1 July 14th 06 08:49 PM
Install dates formating using conditional formating? Jerry Eggleston Excel Discussion (Misc queries) 2 November 9th 05 05:49 PM
Conditional Formating PaolaAndrea Excel Worksheet Functions 10 May 25th 05 02:33 AM
Conditional Formating [email protected] Excel Programming 1 January 19th 04 09:14 PM


All times are GMT +1. The time now is 06:03 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"