title: How to use FindWindow to find a visible or invisible window with a partial name in VBA
body: <p>I am using the Windows API with Excel VBA to work with a particular window, using the <code>FindWindow()</code> function, but <code>FindWindow()</code> requires the full title/caption of the window to find.</p>
  
  <p><strong>Question 1</strong></p>
  
  <p><code>P_Win = FindWindow(vbNullString, "PlusApi_Excel Sample_17_39_12 Api Generated Orders")</code> 
  in my case the window will change the name (dynamic) (some part of the window name will be fixed and some part will be dynamic) </p>
  
  <p>Ex. The window name is first time <code>"PlusApi_Excel Sample_17_39_12 Api Generated Orders"</code>
  and second time it will be <code>"PlusApi_Excel Sample_17_45_13 Api Generated Orders"</code>
  I think I need to call window with part name but I don’t know how to do with kindly help me </p>
  
  <p><strong>Question 2</strong></p>
  
  <p>Above challenge I have one more problem the PlusApi will be hidden but my code shows still a positive value.</p>
  
  <p>I think I need to call <code>"visible"</code> window only.</p>