N00b question--How to program to wait for input

I'm trying to write a macro that will break a view based upon selection inputs from the user.  The first thing I do in the macro is count the selected objects and check if a view is selected, if no view has been selected, then I want the macro to wait for the user to select a view.  Is this possible with the API?  I've written some code that I thought would achieve this, but it just makes solidworks hang (which is logical because solidworks is waiting for my macro to do something and I have indeed written a loop that could be infinite if nothing can be selected)

Count = 0

Do While Count = 0

    Set myView = Part.SelectionManager.GetSelectedObject5(1)

    Count = swSelMgr.GetSelectedObjectCount2(-1)

'Debug.Print Count

Loop

Any tips on functions or code that I need to be using?

SolidworksApi macros