+ Reply to Thread
Results 1 to 6 of 6

CF to ignore the letter Q (small or CAPS)

  1. #1
    Registered User
    Join Date
    11-15-2013
    Location
    Newquay, Cornwall
    MS-Off Ver
    Excel 2010
    Posts
    67

    CF to ignore the letter Q (small or CAPS)

    Anther formatting question. I currently have a rule to colour in a particular cell, if comments are entered in another cell.

    Is it possible to set an exception should the letter 'Q' appear anywhere, be it upper or lower case?

    Current code:

    Please Login or Register  to view this content.
    So it would be the =SEARCH("""",$W2)>0 that needs modifying I would imagine with an "unless q" argument in there?

    Not mega urgent, but would be nice if I could include this in! Thanks all.
    Last edited by Graham Pall; 07-22-2015 at 09:09 AM.
    Still learning... one day I will be able to help!

  2. #2
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: CF to ignore the letter Q (small or CAPS)

    Hello
    I've not tried this with VBA but perhaps if you change your SEARCH function in the code to:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    SEARCH is not case sensitive so it will catch either upper or lower case Q's.

    DBY

  3. #3
    Registered User
    Join Date
    11-15-2013
    Location
    Newquay, Cornwall
    MS-Off Ver
    Excel 2010
    Posts
    67

    Re: CF to ignore the letter Q (small or CAPS)

    Thanks DBY. I've put that into the macro, but it didn't like it

    Compile Error
    Expected: end of statement.

    VBA Editor is highlighting the 'Q' on it's own.

  4. #4
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: CF to ignore the letter Q (small or CAPS)

    Hello Graham
    In VBA the Q has to be enclosed in double double quotes ""Q"". The following seems to work for me:

    Please Login or Register  to view this content.
    Last edited by DBY; 07-22-2015 at 01:06 PM.

  5. #5
    Registered User
    Join Date
    11-15-2013
    Location
    Newquay, Cornwall
    MS-Off Ver
    Excel 2010
    Posts
    67

    Re: CF to ignore the letter Q (small or CAPS)

    Worked a treat! Many thanks. Rep added.

  6. #6
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: CF to ignore the letter Q (small or CAPS)

    Glad to have helped. Thanks for the Rep.

+ 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. Caps letter automatically changing to small pls help.....
    By shiva125 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-21-2012, 03:20 AM
  2. Changing first letter to caps, letters after "-" and "/", and rest to small letter.
    By rhexis07 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-17-2008, 08:03 PM
  3. How can I convert all Caps to first letter caps in Excel?
    By in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 09-06-2005, 12:05 PM
  4. [SOLVED] How can I convert all Caps to first letter caps in Excel?
    By in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-06-2005, 06:05 AM
  5. How can I convert all Caps to first letter caps in Excel?
    By Fenljp26 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  6. [SOLVED] How can I convert all Caps to first letter caps in Excel?
    By Fenljp26 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  7. [SOLVED] How can I convert all Caps to first letter caps in Excel?
    By Fenljp26 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  8. [SOLVED] How can I convert all Caps to first letter caps in Excel?
    By Fenljp26 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-30-2005, 07:05 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