Macro Help. New to Macros

raw88

New Member
Joined
Jun 4, 2020
Messages
2
Office Version
  1. 2010
Platform
  1. Windows
Hello.
Column A will always have the date and time in the pictured format, in 1 second intervals for a whole month.

My goal is to hide or delete any rows that have a number less than 50 in column B. ( I have the macro to do this, picture attached)

Then, I would also like to hide/delete any rows between the first row with a number higher than 50 and the last row higher than 50.

Essentially, giving me a start and stop time in column A for the flows over 50 in column B.

I found the macro to hid the rows with the flows less than 50, but I don't know enough about coding to delete/hide the times in-between the start and stop times.

Any help/suggestions are greatly appreciated!
 

Attachments

  • sample of data.PNG
    sample of data.PNG
    26.4 KB · Views: 10
  • Hide rows with 0 macro.PNG
    Hide rows with 0 macro.PNG
    12.8 KB · Views: 10
  • After running the Macro.PNG
    After running the Macro.PNG
    30.4 KB · Views: 9

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
I was thinking I could maybe change column A from a date format into the general format for times.
Then, create a code to hide/delete any numbers which are 0.00069444 above the previous cell and also 0.0006944 below of the following cell.
Again, I have no idea how that would be coded in VBA. Just what I was thinking..
 
Upvote 0

Forum statistics

Threads
1,215,053
Messages
6,122,882
Members
449,097
Latest member
dbomb1414

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