Re: PickFolder-dialog cancelled

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: CloudsŪ (DOCloudsNOT_at_hardwareSPAM-spot.com)
Date: 08/27/04


Date: Fri, 27 Aug 2004 16:24:12 +0200


> "CloudsŪ" <DOCloudsNOT@hardwareSPAM-spot.com> wrote in message
> news:412ef5f2$0$568$e4fe514c@news.xs4all.nl...
> >
> > Works fine when a folder is selected, but I can't figure out how to
detect
> > that a user cancelled the choose-folder-dialog.
> > PickFolder then returns 'Nothing', but that can't be used is a
comparison.
> > E.g.
> >
> > Set SubFolder = ns.PickFolder
> > If Subfolder = Nothing Then ... End If
> >
> > returns an error.....

"Sue Mosher [MVP-Outlook]" <suemvp@outlookcode.com> schreef in bericht
news:#T5CMoCjEHA.3612@TK2MSFTNGP12.phx.gbl...
> Sure it can:
>
> If Not SubFolder Is Nothing Then
> ' you know you have a folder and can proceed

Thnxz....it's so easy....why didn't I think of it? :-p

--
CloudsŪ