title: What is the correct way to declare and define a FileSystemObject object on VBA?
body: <p>I was reading about how to declare FileSystemObjects objects and I found confusing information. Is it because there are different ways to declare it?</p>
  
  <p>I let you some of the ways I found to declare and define FileSystemOjbect objects:</p>
  
  <ol>
  <li><p><code>Dim FSO As FileSystemObject
  Set FSO = New FileSystemObject</code></p></li>
  <li><p><code>Dim FSO As New FileSystemObject</code></p></li>
  <li><p><code>Dim FSO As Object
   Set FSO = CreateObject("scripting.filesystemobject")</code></p></li>
  </ol>
  
  <p>Which is the right way to declare FileSystemObject objects?</p>