Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

working on excel vba code, need a column to filter two different times if there are two different types of highlighted cell colors. current code

working on excel vba code, need a column to filter two different times if there are two different types of highlighted cell colors. current code does that, but brakes when it doesn't see one of the colors or if there happens to be no colored cell when macros in ran. when it doesn't see the color it still filters and end up moving all the data as if it where doing the action for the filtered colored data. please help.

image text in transcribed

Range ("Al"). Activate ActiveSheet.Listobjects ("Tablel").Range. AutoFilter Field:=1, Criterial: RGB (0, 176, 80), Operator:=xlFilterCellColor Range ("Table1").Select move one ActiveCell.Offset(1, 0).Select Range (Selection, Selection. End (xlDown)).Select Range (Selection, Selection.End (xlToRight)). Select Range (Selection, Selection.End (xlToRight ).Select

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database 10g Insider Solutions

Authors: Arun R. Kumar, John Kanagaraj, Richard Stroupe

1st Edition

0672327910, 978-0672327919

More Books

Students also viewed these Databases questions