I'm writing a function to create a new folder and return the path to that folder.
If the function finds that the folder already exists the script should be exited to avoid any problems with the existing folder and documents.
Given that the function is declared as
Function New_Folder (ByVal Name As String) As String
what should it return if it "fails" to indicate an error? Just "1" in the string and the receiving sub will have to just deal with it? Is there a conventional way to handle this?
Thanks! (Apologies for asking a question that is likely answered thoroughly elsewhere, haven't been able to find it)