title: VBA Print and Write command confusion
body: <p>In cell C18 of my code is the filepath </p>
  
  <pre><code>C:\blahblahblah\yay.db
  </code></pre>
  
  <p>I want to write a txt file so the first line reads:</p>
  
  <pre><code>uil_file_new.go( "C:\blahblahblah\yay.db","C:\blahblahblah\yay.db")
  </code></pre>
  
  <p>I have tried the following:</p>
  
  <pre><code>Dim template As String
  template = Range("C18").Value
  
  Open (ThisWorkbook.Path &amp; "\" &amp; "test.txt") For Output Access Write Shared as #1
  Print #1, "uil_file_new.go( " &amp; template &amp; "," &amp; template &amp; ")"
  Close #1
  </code></pre>
  
  <p>which gives </p>
  
  <pre><code>uil_file_new.go( C:\blahblahblah\yay.db ,C:\blahblahblah\yay.db)
  </code></pre>
  
  <p>I need the txt file to have the " " around the filepaths. Is there is a way to pass a variable to a txt file but have the " " around what the variable contains?</p>
  
  <p>I have tried the Write #1, command but it just puts "template", which isn't what I want.</p>
  
  <p>It won't let me write single ", for example this would be ok:</p>
  
  <pre><code>Write #1, "
  Print #1, template
  Write #1, "
  </code></pre>
  
  <p>but it always corrects it to </p>
  
  <pre><code>Write #1, ""
  </code></pre>