Chirag R Raval
Member
Dear All Experts,
I have a folder contains Month Wise 9 Excel's files.
some times by mistake new file name's first 8 char become same when naming it.
(after that 8 char, rest char is unique, that's not matter here)
I can not check in hurry when new file generating in that folder that
its first 8 char is already used for another file name in previous.
Actually I have a VBA macro that open each file & process that files based on that file name (first 8 char of that file name), when get wrong result, then realize that 2 file name's first 8 char have same name so whole process end with mess up.
How can we check by code that in particular folder , Excel files, first 8 char is same?
may be more then 1 case can be found that another 2 files can have same name.
How can we check that there are how many case, that 2 files have same name ?
Message box should appear that say" there are 1, 2 or 3 instance found (with file name)
that have same first 8 char in its name .
Attached Screen Shot of That Folder
Hope there are some solution found here.
Help will be appreciated.
Regards,
Chirag Raval
I have a folder contains Month Wise 9 Excel's files.
some times by mistake new file name's first 8 char become same when naming it.
(after that 8 char, rest char is unique, that's not matter here)
I can not check in hurry when new file generating in that folder that
its first 8 char is already used for another file name in previous.
Actually I have a VBA macro that open each file & process that files based on that file name (first 8 char of that file name), when get wrong result, then realize that 2 file name's first 8 char have same name so whole process end with mess up.
How can we check by code that in particular folder , Excel files, first 8 char is same?
may be more then 1 case can be found that another 2 files can have same name.
How can we check that there are how many case, that 2 files have same name ?
Message box should appear that say" there are 1, 2 or 3 instance found (with file name)
that have same first 8 char in its name .
Attached Screen Shot of That Folder
Hope there are some solution found here.
Help will be appreciated.
Regards,
Chirag Raval