+ Reply to Thread
Results 1 to 6 of 6

Conditional formatting problem

  1. #1
    Forum Contributor
    Join Date
    12-23-2013
    Location
    Hungary
    MS-Off Ver
    Excel 2013
    Posts
    331

    Conditional formatting problem

    Hello,

    I would like to ask some help regarding conditional formatting with formula. In range ("L9:L" & OutputLastRow) I would like to use the below mentioned Formula1 but I receive "Invalid procedure call or argument" error message.

    Could somebody help me where is the problem?

    Here is the code:
    Please Login or Register  to view this content.
    Thanks in advance the reply!

  2. #2
    Forum Contributor
    Join Date
    05-29-2013
    Location
    MD
    MS-Off Ver
    Excel 365
    Posts
    148

    Re: Conditional formatting problem

    Hi Villalobos,

    What does OutputLastRow evaluate to? When the macro stops because of the error, press "Debug" then hover the mouse over the variable 'OutputLastRow' and tell us what the value is.

    You can also help by telling us which line the macro stops at.

    Thanks,
    Duncan

  3. #3
    Forum Contributor
    Join Date
    12-23-2013
    Location
    Hungary
    MS-Off Ver
    Excel 2013
    Posts
    331

    Re: Conditional formatting problem

    Hi Duncan,

    Here is the sample. The original file has more thousand rows.
    I would like to apply the conditional formatting formula until the end of last value in column L. The number of the values in column L are changing daily.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    05-29-2013
    Location
    MD
    MS-Off Ver
    Excel 365
    Posts
    148

    Re: Conditional formatting problem

    Hi,

    Sorry for the delayed response - this actually worked for me without any errors.

    Thanks,
    Duncan

  5. #5
    Forum Contributor
    Join Date
    12-23-2013
    Location
    Hungary
    MS-Off Ver
    Excel 2013
    Posts
    331

    Re: Conditional formatting problem

    Hi Duncan,

    Thank you the reply.
    Unfortunately the problem is still open on my side. Maybe somebody know what could be the problem?

    [CODE][/ .Range("L9:L" & OutputLastRow).FormatConditions.Add Type:=xlExpression, Formula1:="=AND(J9>0,K9<J9,O9>0,P9>TODAY())"CODE] this line cause the problem.

  6. #6
    Forum Contributor
    Join Date
    05-29-2013
    Location
    MD
    MS-Off Ver
    Excel 365
    Posts
    148

    Re: Conditional formatting problem

    Like I said before, can you tell us what the exact error is? What is the value of OutputLastRow when the error occurs?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] New conditional formatting problem
    By hmlee in forum Excel General
    Replies: 5
    Last Post: 03-04-2014, 01:49 AM
  2. VBA Problem with Conditional Formatting
    By excelenergy in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-07-2012, 12:27 PM
  3. conditional formatting problem
    By rookie37 in forum Excel General
    Replies: 7
    Last Post: 09-12-2010, 06:56 AM
  4. Conditional formatting problem
    By wisconsin262 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-08-2008, 01:59 AM
  5. Conditional Formatting Problem
    By andyp161 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-06-2005, 08:46 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1