+ Reply to Thread
Results 1 to 4 of 4

Conditional Formating converting recorded macro to use variable issue

  1. #1
    Registered User
    Join Date
    09-13-2024
    Location
    San Diego
    MS-Off Ver
    11
    Posts
    9

    Conditional Formating converting recorded macro to use variable issue

    Hi I have recorded a macro to use as a basis to create some Conditional Formatting, however, I am not able to correctly rewrite it with variables for some reason.

    When I look at the resultant of my edited macro, it basically changes it from a Cell Value statement to a Formula statement when I look at "Manage Rules" and gives me a TRUE result for all cells

    Here is the recorded macro line:
    Please Login or Register  to view this content.
    This was my attempt to use variables:
    Please Login or Register  to view this content.
    Unfortunately, when reviewing the original conditional format manually input, it says correctly:
    Cell Value < $K11*$G$3 Applies to =$E$11:$J$38

    While the macro replacement is
    Formula =TRUE and applies to =$E$11:$J$38

    I am sure this is just a syntax issue, but what is the issue?

  2. #2
    Forum Expert
    Join Date
    08-17-2007
    Location
    Poland
    Posts
    2,521

    Re: Conditional Formating converting recorded macro to use variable issue

    Probably:
    Please Login or Register  to view this content.
    Artik

  3. #3
    Registered User
    Join Date
    09-13-2024
    Location
    San Diego
    MS-Off Ver
    11
    Posts
    9

    Re: Conditional Formating converting recorded macro to use variable issue

    Quote Originally Posted by Artik View Post
    Probably:
    Please Login or Register  to view this content.
    Artik
    NO,

    I had tried that earlier, by replacing all of the variants from False to True 1 at a time, then all of them.
    Finally switched only the first variants to TRUE, and while it gets me closer in the conditions "Manage Rules", it still does NOT highlight anything.

    the original conditional format manually input, it says and works correctly:
    CEll Value <$K11*$g$3 Applies to =$E$11:$J$38

    What I see now after changing TRUE variants is:
    Formula: ="<$K11*(0.1)" Applies to =$E$11:$J$38

    Note differences above... I am not too worried about the value (0.1) as that is the cell value in cell $g$3
    But what changes this from Cell Value to Formula: ="

  4. #4
    Registered User
    Join Date
    09-13-2024
    Location
    San Diego
    MS-Off Ver
    11
    Posts
    9

    Re: Conditional Formating converting recorded macro to use variable issue

    This Thread was created incorrectly so I have stated solved rather than deleting. I don't se a delete?

+ 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. Recorded VBA Macro error 1004 - Formula issue.
    By Stelio in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-21-2023, 06:50 AM
  2. Issue with recorded macro in Excel
    By butterscotch in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-17-2021, 11:24 AM
  3. [SOLVED] How to change the criteria into variable in the recorded MS query macro ?
    By karmapala in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-04-2019, 05:49 AM
  4. [SOLVED] Issue with Conditional Formating
    By rizmomin in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-01-2018, 07:42 PM
  5. Conditional Formating issue
    By SMILE in forum Excel General
    Replies: 2
    Last Post: 09-08-2011, 03:37 AM
  6. Conditional Formating issue.....
    By WalterT. in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-08-2005, 08:35 PM

Tags for this Thread

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