Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

STL - Formerly Best Training Solutions Through Learning
TrustPilot
Excellent
Request Callback We will call you back
0207 987 3777 Call for assistance
Your Basket Basket is empty
searching files disk

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Searching for files on disk

Searching for files on disk

ResolvedVersion 2003

Anna has attended:
Excel VBA Intro Intermediate course

Searching for files on disk

User provides a path and a name of a file, but a file with the name exactly as the user provided might not exist. However a very similar file exists. It might also happen that the file user asks for and a very similar one exist. How can I search for files with names similar to what the user asks for and if there are a few similar files -- open the one created the latest.

RE: searching for files on disk

You could use the Like operator (check it out in online Help), which will match with a pattern. For example, the pattern "ABC*" matches all strings which start with "ABC".

/Roy

Excel tip:

Navigate with keyboard without losing your active cell

If you like using your keyboard to scroll through your excel document, but want to keep your active cell the same, use the scroll lock, and then use your arrow keys to navigate around the document.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.09 secs.