+ Reply to Thread
Results 1 to 4 of 4

If Or Statement Help

  1. #1
    Forum Contributor
    Join Date
    11-16-2011
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    405

    Question If Or Statement Help

    Hi Everyone
    Im using the following code to query whether any of the cells form column D to Column J on the given Row have the same cell shading as the variable FindColour

    Please Login or Register  to view this content.
    However apart from being long and messy Its not returning correct results.
    I.e. The rows which contain cells which are shaded the same as FindColour are being hidden.
    How do i tidy this code up so that the first line isnt so long and tedious, and how do i get it to work correctly?

    Regards
    Last edited by jordan2322; 07-06-2012 at 01:45 AM.

  2. #2
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: If Or Statement Help

    You could do this?

    Please Login or Register  to view this content.
    Be fore warned, I regularly post drunk. So don't take offence (too much) to what I say.
    I am the real 'Napster'
    The Grid. A digital frontier. I tried to picture clusters of information as they moved through the computer. What did they look like? Ships? motorcycles? Were the circuits like freeways? I kept dreaming of a world I thought I'd never see. And then, one day...

    If you receive help please give thanks. Click the * in the bottom left hand corner.

    snb's VBA Help Files

  3. #3
    Forum Contributor
    Join Date
    11-16-2011
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    405

    Re: If Or Statement Help

    Thanks for your reply JapanDave

    i used the following code inlieu of yours

    Please Login or Register  to view this content.
    I ran into a few problems using other methods and this one worked out fine for me .. for now
    cheers!

  4. #4
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: If Or Statement Help

    Glad I could help. Thanks for marking the thread solved.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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