Good afternoon realniceguy5000
Quote Originally Posted by realniceguy5000 View Post
Can someone help me modify this line of code to have the user pick the last folder?
The GetOpenFileName instruction is great, but as you pointed out it's only useful for selecting a file, and there is no ready made instruction for selecting a folder.

That said, there is a piece of code kicking around the internet that will allow you to open and utilise a "Browse for Folder" dialog, which seems perfect for your needs. John Walkenbach includes the whole code, plus a brief write up here.

HTH

DominicB