title: How to Open only UserForm of an excel macro from batch file
body: <p>I'm trying to open the UserForm1 of an excel macro through batch file. I'm able to open that but excel is also getting opened along with that. I want only UserForm1 to be opened not the excel. Below is my approach :</p>
  
  <p>I have written a macros to open the UserForm1</p>
  
  <pre><code>Sub open_form()
     UserForm1.Show
  End Sub
  </code></pre>
  
  <p>In batch File:</p>
  
  <pre><code>@echo off
  cd "c:\Test\"
  openFormTest.xlsm
  </code></pre>
  
  <p>By the above approach, When I'm running the batch file both UserForm1 and excel are getting open, but I want to open only UserForm1. Kindly help me out</p>