VBA code to Hide or Delete Rows

Status
Not open for further replies.

mgchurch77

New Member
Joined
Aug 15, 2011
Messages
33
Description of the worksheets:

For simplicity sake I'll describe my workbook as only having two worksheets.

A "source" worksheet and a "destination" worksheet. The "source" worksheet consists of column A which are names of customers and column B consists of the result of a calculation fusing data from other sheets which could be any number from 1-12.

The "destination" sheet has a certain cell (we'll call that the target cell) where the user "me" can input a number from 1-12. Column A of the destination page matches the number from the target cell to column B of the source page to determine whether or not to pull the customer name from column A of the source page into column A of the destination page. If the number from the target cell matches column B of the destination page, the name is pulled, if there is not a match the answer returned is false.

Code needed:

The code would run on the destination page as outlined above. What I need it to do is to hide the rows where the answer for that certain row in column A of the destination page is "false". Thanks in advance for anyone's help.
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Status
Not open for further replies.

Forum statistics

Threads
1,224,550
Messages
6,179,461
Members
452,915
Latest member
hannnahheileen

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top