water Posted February 19, 2010 Share Posted February 19, 2010 It checks for errors and returns the error information as described in the function header. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
gcue Posted February 19, 2010 Author Share Posted February 19, 2010 from a pc that has domain query access@error:0@extended:0return value:1from a pc thats part of a domain but network cable disconnectedCOM Error Encountered in test.exeScriptline = -1NumberHex 80070548Number = -2147023541WinDescription = The specified domain either does not exist or could not be contactedDescription =Source =Helpfile =HelpContext =LastDllError = 317@error:4@extended:-2147023541return value:0from an account that doesnt have domain query/modify access@error:3@extended:-2147352567return value:0looks promising!!!again thanks for your help... sorry for the delay in response but counting on a user on a different time zone. Link to comment Share on other sites More sharing options...
water Posted February 19, 2010 Share Posted February 19, 2010 Hi gcue, the production version will handle all errors without showing the message box (in the _AD_ErrorHandler function). So you get a return code from _AD_Open in your script. If the return code is <> 0 then you can exit because you can't connect to the AD. I don't know how long it will take to release the next version. But if you like I can post both functions in advance. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
gcue Posted February 19, 2010 Author Share Posted February 19, 2010 (edited) its ok i can wait till you're done =) this is a huuge improvement.. adfunctions works well but this is definitely a step up bc of how you;ve organized it and error capturing def makes it closer to flawless =D do you have an eta? psyhced about it! thanks for the work you've put into this awesome UDF water and props for Johny Clelland for starting it up... Edited February 19, 2010 by gcue Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now