B
Bert
I have a macro that is to open only Word or Excel
documents. Anything else bypasses the code. If I test for
Word documents with :
If strExtension <> ".doc" Then GoTo NextLink
then the Word docs are processed, eveything else bypasses.
If I test for Word and Excel docs with:
If strExtension <> ".doc" Or strExtension <> ".xlw" Then
GoTo NextLink
everything bypasses the code. Why?
documents. Anything else bypasses the code. If I test for
Word documents with :
If strExtension <> ".doc" Then GoTo NextLink
then the Word docs are processed, eveything else bypasses.
If I test for Word and Excel docs with:
If strExtension <> ".doc" Or strExtension <> ".xlw" Then
GoTo NextLink
everything bypasses the code. Why?