LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 104
Default Formula Conditional Formating

I need VBA to perform some conditional formatting on a spreadsheet that is
overlaid by ACCESS. I can get the formula to work in the tradional
conditional formatting by using the Formula: =RIGHT($E1,5)='Total', then
changing the format to Bold/Italic. I have tried numerous ways to make it
work in VBA, but I'm afraid I just don't understand enough about VBA to
figure it out. Here's my latest attempt:

Range("E1:K61000").Select
Selection.FormatConditions.Add Type:=xlExpression, _
Formula1:="=RIGHT($E1,5)='Total'"
Selection.FormatConditions(1).Bold = True
Selection.FormatConditions(1).Italic = True

It keeps rejecting the second & third line of code. Any suggestions?

Thank you in advance,
Cathy
 
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 with IF and AND formula murkaboris Excel Discussion (Misc queries) 2 July 22nd 09 07:29 PM
formula or conditional formating Joseph[_4_] New Users to Excel 2 July 8th 09 10:18 PM
Conditional formating formula Jman Excel Worksheet Functions 2 September 20th 08 01:20 AM
IF formula with conditional formating help please ferde Excel Discussion (Misc queries) 3 September 14th 08 12:24 AM
if, then formula with conditional formating Rex Excel Worksheet Functions 4 October 23rd 06 05:29 PM


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