![]() |
#2
|
||||
|
||||
![]()
Try changing:
If Right(strName, 4) = ".doc" Or Right(strName, 4) = ".dot" Then to: If Split(strName, ".")(UBound(Split(strName, "."))) Like "do[ct]*" Then PS: When posting code, please use the code tags, inserted via the # button on the posting menu
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
Tags |
.doc, .docx, batch |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
remove repeated words with " macro " or " wild cards " in texts with parentheses and commas | jocke321 | Word VBA | 2 | 12-10-2014 11:27 AM |
When composing an e-mail how do I add "Page Layout" and "View" tabs to the ribbon | CensorTilSin | Outlook | 1 | 12-11-2013 12:05 PM |
How to edit the "Format" and the "show level" of an EXISTING table of content? | Jamal NUMAN | Word | 2 | 08-14-2011 10:46 AM |
![]() |
Jamal NUMAN | Word | 2 | 07-03-2011 03:11 AM |
"Microsoft Excel Application" missing in the "Component Services" on win08 | sword.fish | Excel | 0 | 02-26-2010 02:09 PM |