I have a membership database spreadsheet with about 1000 members, and have developed various macros to extract data for various purposes (different mailing lists, email address files etc). A subroutine in all these checks the databases for empty cells in columns relevant to the macro, and reports an error message if it finds an empty cell (with the location of that cell). The macro basically just steps through every cell in the programmed columns and checks if empty.
Currently this subroutine is tailored for each macro, so that it only checks the relevant columns, as sometimes an empty cell can be valid.
I'd welcome suggestions on two points: is there a more efficient way of testing for empty cells, while at the same time being able to report the location if found. Secondly I'd like to modify the macro so that I could define a list of the columns to check at the beginning of the macro (maybe a comma separated string variable?), so that I can reuse the main code in each macro, rather than have umpteen versions of it.
I've included the current code here, but also attached the file, together with a sample membership database (dummy data) at the end.
Thanks for any ideas.
Check Membership.xlsMembership (Test Data B).xlsPlease Login or Register to view this content.
Bookmarks