__________________ _______________________________________________
There are 10 types of people in the world. Those that understand Binary and those that dont.
Why are Halloween and Christmas the same? Because Oct 31 = Dec 25...
VB: AutoLinked keywords will cause extra spaces before keywords. Extra spacing is NOT transferred when copy/pasting, but IS if the keyword uses "quotes".
With Application.FileDialog(msoFileDialogFolderPicker)
.Show
FilePath = .SelectedItems(1)
End With
to get the folder path?
Anyway, would you mind if I used this in our next Newsletter? I will, of course, give you full credit and a link to your blog, so get some AdSense set-up
Anyway, would you mind if I used this in our next Newsletter? I will, of course, give you full credit and a link to your blog, so get some AdSense set-up
Hi Kris, I know its slightly off topic, and youre probably aware of this, but for anyone else interested, Jim Rech wrote some fairly slick code to allow a user to Select a Folder in Excel 2000. I've used it myself under permission from Jim in my own Apps.
This bit of wizardry demonstrates how to call the Windows API to show the standard “browse for folder” dialog. The technique demonstrates how to use callback functions with Excel 97 and Excel 2000 in order to pre-select the initial folder. See the “Discussion” sheet in the workbook for a more detailed explanation. Version 2.0 adds support for the Windows 2000 “new style” browse dialog as well as for centring the dialog on screen.
Worth a look, if youre into that kind of thing ;-)
Ger
__________________ _______________________________________________
There are 10 types of people in the world. Those that understand Binary and those that dont.
Why are Halloween and Christmas the same? Because Oct 31 = Dec 25...