title: Close UserForm from Module
body: <p>I am trying to Close a User Form from a module, but it's not working.</p>
  
  <p>Here is what I have tried</p>
  
  <pre><code>Sub UpdateSheetButton()
      Dim subStr1 As String
      Dim subSrrt2() As String
      Dim tmp As Integer
      Dim pos As Integer
  
      Dim Form As WaitMessage
      Set Form = New WaitMessage
  
      With Form
          .Message_wait = Module2.Label_PleaseWait  
          .Show
      End With
  
      For Each Cell In ActiveSheet.UsedRange.Cells
          subStr1 = RemoveTextBetween(Cell.formula, "'C:\", "\AddIns\XL-EZ Addin.xla'!")
          tmp = Len(subStr1) &lt; 1
          If tmp &gt;= 0 Then
              Cell.formula = subStr1
              status = True
          End If
      Next
  
      Unload Form
  
      MsgBox Module2.Label_ProcessComplete
  
  End Sub
  </code></pre>
  
  <p>Form Name is <code>WaitMessage</code>.</p>
  
  <p>I have also tried <code>WaitMessage.Hide</code> but it's also not working.</p>