title: KoFax Automation with VBA
body: <p>I've seen this <a href="https://stackoverflow.com/questions/1027966/has-anyone-used-kofax-capture-api">Has anyone used Kofax Capture API for creating a Importer to create a batch in Kofax</a>, but it didn't work out for me.</p>
  
  <p>I'm trying to automate creating a batch and maybe validating a batch from vba(ideally vb.net after). </p>
  
  <p>Is there any sample code to assist me in the right direction? Almost everything I searched lead me to a contractor for hire or licensed software.
  I tried figuring it out myself through trial and error but I couldn't even connect to a Kofax session.</p>
  
  <pre><code>Dim oFax As ACDB.RuntimeSession
  Dim oBatch As ACDB.Batch
  Dim pax As ACDB.Process
  Dim lFax As ACDB.Login
  
  Set lFax = New ACDB.Login
  Set oBatch = oFax.BatchCreate("Test", "Test", 0)
  MsgBox (oBatch.Name)
  </code></pre>