Skipping rows based on a cells data

So I currently have this user form that exports everything on the worksheet to a MS Word document template and it saves each document a different name based on a sequential number.

I originally wanted to have the user be able to type in a set of number that could be skipped, but since I received no help on that I was able to change the data in one of the fields.  

So if say the data in Column H on row 6 says closed then that row will be skipped.

How do I go about making it so it will skip that row based on that criteria.  And that is the real data and column.

Thanks
John
John SheehySystem Security ManagerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

John SheehySystem Security ManagerAuthor Commented:
So I figured it out.

Under the section in my code where it says:

For i = 2 To LastRow

That just tells the code to start at row 2, because row 1 has the header information for the spreadsheet
Basically row 2 all the way to last row with data in it

Under that code I added the following:
If ws.Range("H" & i).Value = "Closed" then goto skip

This tells the code that on this worksheet (ws) at the range of H on the active row if the value in the cell equals "Closed" to skip everything else and go on to the Next row.  

John

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
John SheehySystem Security ManagerAuthor Commented:
Took me longer than expected to get an answer.  But I did an outstanding job figuring it out.  Adapt and overcome.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.