+ Reply to Thread
Results 1 to 5 of 5

FormatConditions: Is there another way to type this expression?

  1. #1
    Forum Contributor
    Join Date
    04-02-2017
    Location
    Australia
    MS-Off Ver
    2016
    Posts
    403

    Cool FormatConditions: Is there another way to type this expression?

    Hi guys,

    Please Login or Register  to view this content.
    Is there another way to type the above code? I really dislike using the "Type:=" and the "Formula1:=" tags.
    The way I personally would like to enter it would be something like the following:

    Please Login or Register  to view this content.

    Thanks,
    Jimmy

  2. #2
    Forum Contributor
    Join Date
    04-02-2017
    Location
    Australia
    MS-Off Ver
    2016
    Posts
    403

    Re: FormatConditions: Is there another way to type this expression?

    Hey guys,

    This seems to do the trick:
    Please Login or Register  to view this content.

  3. #3
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: FormatConditions: Is there another way to type this expression?

    Jimmy

    Why not just remove Type:= and Formula1:=.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  4. #4
    Forum Contributor
    Join Date
    04-02-2017
    Location
    Australia
    MS-Off Ver
    2016
    Posts
    403

    Re: FormatConditions: Is there another way to type this expression?

    Hi Norie, that's interesting.

    Norie, currently my code looks like this:
    Please Login or Register  to view this content.
    using your code How would you go about doing what I did? (I'm just curious.)
    Please Login or Register  to view this content.


    As in:
    Please Login or Register  to view this content.
    Last edited by JimmyWilliams; 12-12-2017 at 06:36 PM.

  5. #5
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,609

    Re: FormatConditions: Is there another way to type this expression?

    Please Login or Register  to view this content.
    Ben Van Johnson

+ 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. INTERMITTENT “Data Type Mismatch in Criteria Expression”
    By carsto in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-14-2017, 11:53 AM
  2. [SOLVED] Excel/SQL Hybrid - Run-time Error: Data type mismatch in criteria expression
    By Sleepyshy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-11-2016, 05:43 PM
  3. error 3464 data type mismatch in criteria expression in CurrentDb.Execute update
    By SKooLZ in forum Access Programming / VBA / Macros
    Replies: 1
    Last Post: 07-12-2015, 09:05 AM
  4. [SOLVED] Cannot return value from FormatConditions.Item.Type/Formula1
    By Boffster in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 02-18-2014, 05:58 AM
  5. [SOLVED] Data Type Mismatch in Criteria Expression
    By williams485 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-15-2012, 10:26 AM
  6. FormatConditions VBA Bug?
    By DaveCrowley in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-24-2006, 05:00 PM
  7. [SOLVED] Bug in .FormatConditions.Add Type:=xlExpression, Formula1:=cfExpression
    By Thief_ in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-18-2005, 10:06 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