Alexandroid
New Member
- Joined
- Jan 29, 2014
- Messages
- 16
I've been trying to get this one working for a few days now but Named Ranges in VBA are being a total pain! I'm sure I'm missing something simple but I am still new to VBA and Excel and just can't figure it out.
I have a sheet with test cases. A test case will consist of a title (first row) and then several steps (the rows below). There are columns of "Pass/Fail" and other columns but they don't matter right now.
I've managed to dynamically create the named ranges for each test case (several test cases per sheet and they don't always have the same amount of steps/rows) just naming them "TestCase1", "TestCase2", etc... in relation to which test case number they are in the sheet.
I want to create a button to automatically hide all the test cases that have Pass in them and only show the test cases that have Failed.
For the sake of the code, an example of the named ranges:
TestCase1 = "=test2!$5:$7"
TestCase2 = "=test2!$9:$12"
TestCase3 = "=test2!$14:$18"
Pass or Fail column is Column "E".
Can anyone help me get this going?
Thanks!
I have a sheet with test cases. A test case will consist of a title (first row) and then several steps (the rows below). There are columns of "Pass/Fail" and other columns but they don't matter right now.
I've managed to dynamically create the named ranges for each test case (several test cases per sheet and they don't always have the same amount of steps/rows) just naming them "TestCase1", "TestCase2", etc... in relation to which test case number they are in the sheet.
I want to create a button to automatically hide all the test cases that have Pass in them and only show the test cases that have Failed.
For the sake of the code, an example of the named ranges:
TestCase1 = "=test2!$5:$7"
TestCase2 = "=test2!$9:$12"
TestCase3 = "=test2!$14:$18"
Pass or Fail column is Column "E".
Can anyone help me get this going?
Thanks!