title: Calling ImageMagick COM from VBScript in Excel
body: <p>I'm using Windows 7 64 bit and Excel 2013.</p>
  
  <p>I added the reference ImageMagickObject 1.0 Type Library and also made sure that I am not binding early. I also installed Dynamic 64 bit 16Q ImageMagick. </p>
  
  <p>I still have an error with error number '-2147215503' when I run the following code.</p>
  
  <pre><code>Private Sub CommandButton1_Click()
  On Error GoTo ErrorHandler
  Dim img
  Set img = New ImageMagickObject.MagickImage
  MsgBox (img.Convert("C:\test1.jpg", "-format", "%c", "histogram:info:C:\out.txt"))
  Exit Sub
  ErrorHandler:
       MsgBox (Err.Number &amp; ":" &amp; Err.Description)
  End Sub
  </code></pre>
  
  <p>Please let me know what is wrong with this code.
  I would also be grateful if anybody can point for VBA ImageMagick Documentation. I've searched on Imagemagick.org but couldn't find anything. </p>
  
  <p>Thanks a lot.</p>