Its is simple as the title puts it. I need to be able to open files with a folder that have "x.xlsx" but not "*xy.xlsx".
Just not sure how to do it. I can get the the file directory and then use a asterisk to select all files with "x". but i have files that i don't want to open with the only change being that at the end of the file name they have a small amount of text ("y").
this is what i have so far. what would i add.
Workbooks.Open (Dir & FileNameStart & "*")
hope this is clear.
There is something unclear in your question. However look into possible solution below:
So, put it inside your loop and it should work.