title: Use C# to make Signature Line with intended signer, email, etc. in Excel
body: <p>I'm using Excel to automatically generate forms for my company's accounting department. I need each form to have an Excel Signature Line object in it with the intended signer's information (Name, title, email) filled in and ready for them to sign.</p>
  
  <p>So far, I have the signature line being created with</p>
  
  <pre><code>xlApp.ActiveWorkbook.Signatures.AddSignatureLine();
  </code></pre>
  
  <p>where xlApp is my Excel Application. When  I run the code, it generates the signature box, but has a pop up asking for the intended signer's name, title, and email. I tried using</p>
  
  <pre><code>SendKeys.Send(name + "{TAB}Peon{TAB}" + email + "{TAB}{TAB}{TAB}{TAB}~");
  </code></pre>
  
  <p>to manually type in the information, since I couldn't find any methods for creating a Signature Line that accept this information. However, the code hangs up until the popup window is closed, never getting to the line where it fills in the information I need it to. I was thinking of suppressing alerts and popups in excel, but I can't find where to edit the attributes of the Signature Line object. Any thoughts on how to achieve my goal?</p>
  
  <p>Thanks if you can help!</p>