Description: This routine makes sure that your current file is not empty. If it is, it shows an error and stops the routine. The idea is to use this as a subroutine of a larger routine that's more specific to your situation. I'm using this routine as a sub routine of two other routines, currently.
Make sure that when you're setting this up as a subroutine, you specify that it can stop the main routine. Otherwise this won't accomplish anything as a subroutine. It'll just show the validation alert and then stop and your main routine will carry on oblivious to the error.
Shared by: Martyn Chamberlin
Comments: Comment Feed (RSS)