title: If File path does not exits then exit sub
body: <p>Hey I fairly new at Excel and I am running into a problem with error handing. I want my macro to run and if it can not find the folder then it should produce a message to the users and exit sub. Any help would be greatly appreciated!</p>
  
  <p>Below is my code on where my macro saves file </p>
  
  <pre><code>    Worksheets("Input data").Visible = True
      folder = "\\Group_SHARED\Group Shared\Engineering\Controlled Folder\Number_Checkout\Archived\Archived"
      MyTime = Time
      Sheets("Input data").Select
      Range("G2").Value = MyTime
      strFileName = folder &amp; "_" &amp; Sheets("Input data").Range("C6").Value &amp; "_" &amp; Sheets("Get_ECN").Range("B6").Value &amp; "_" &amp; Sheets("Input data").Range("C3").Value &amp; " " &amp; Sheets("Input data").Range("C4").Value
      Worksheets("Input data").Visible = False
      ActiveWorkbook.SaveAs Filename:=strFileName
  </code></pre>