tp hide or not

alan myers

Board Regular
Joined
Oct 31, 2017
Messages
119
Office Version
  1. 365
Platform
  1. Windows
i want to press a button to start a macro
this macro will do this

on the hide show tab
the macro hides the rows on the cover sheet tab
hide rows starting from coulmn b to column c if coulmn d is 0 if 1 do nothing
for each carrier from 1 to 195


column a coulmn b column c column d
carrier 1 400 450 1
carrier 2 450 600 0
carrier 195 886 900 1
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
You could do this without a macro simply by filtering column D using 1 as the criterium.
 
Upvote 0
well, i don't even know where to start to do that, and I have been talking to other guys they all say VBA
 
Upvote 0
Click in cell D1. In the menu at the top, click on the 'Data' tab and then click the 'Filter' icon. You will see drop down arrows in the cells in row 1. Click the down arrow in D1. Click on the check mark to the left of 'Select All' to remove it and then insert a check mark to the left of the number 1. Click 'OK'.
 
Upvote 0

Hidden y/n
StartEnd
carrier 1y350
carrier 2n6070
carrier 3n89100
carrier 4n121125
carrier 5y330400
carrier 6y450526
carrier 7n551589
carrier 8y602703
Carrier 194n899945
Carrier 195y########
this Is the h-show tab
I want to hide rows on the cover sheet tab
there are 195 Carriers
 
Upvote 0
How is it not working for you? Please explain in detail.
 
Upvote 0

Forum statistics

Threads
1,214,790
Messages
6,121,608
Members
449,038
Latest member
apwr

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