![]() |
#6
|
||||
|
||||
![]()
If you want to check male & female as well, you'll need to add those expressions to the code. For example, instead of:
StrGen = "<[Hh][Ee]> <[Hh][Ii][MmSs]> <[Hh][Ii][Mm][Ss][Ee][Ll][Ff]>|" & _ "<[Ss][Hh][Ee]> <[Hh][Ee][Rr]> <[Hh][Ee][Rr][Ss]> <[Hh][Ee][Rr][Ss][Ee][Ll][Ff]>" use: StrGen = "<[Mm][Aa][Ll][Ee]> <[Hh][Ee]> <[Hh][Ii][MmSs]> <[Hh][Ii][Mm][Ss][Ee][Ll][Ff]>|" & _ "<[Ff][Ee][Mm][Aa][Ll][Ee]> <[Ss][Hh][Ee]> <[Hh][Ee][Rr]> <[Hh][Ee][Rr][Ss]> <[Hh][Ee][Rr][Ss][Ee][Ll][Ff]>" You can keep adding similar expressions, for man & woman, boy & girl, etc. the same way. Encoding the expresions as I have done means they can be found regardless of what combination of uppercase & lowercase letters they use. As for buttons, please read what I wrote in post #2. You can't simply add buttons to a macro. Of course, if you used gender-neutral terms (e.g. patient, client, person), this wouldn't be an issue.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
Tags |
gender check |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Turning On Spell Checking Again | SQLUSA | Word | 9 | 08-01-2012 05:41 PM |
Checking n cells above's content | hanvyj | Excel | 4 | 03-22-2012 03:58 AM |
![]() |
mahenn45 | Word | 1 | 03-01-2012 01:05 AM |
![]() |
Deepy | Excel | 1 | 02-14-2011 05:06 PM |
Checking for DOS executions | ajetrumpet | Excel | 0 | 12-06-2009 02:33 PM |