Guest User

Untitled

a guest
Jan 21st, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. ' Deactivate the keyboard.
  2. Application.OnKey "^d", "KeyboardOn"
  3. Application.DataEntryMode = True
  4.  
  5. ' Display the splash form non-modally.
  6. ssiWaitDialog.TaskDone = False
  7. ssiWaitDialog.Show False
  8.  
  9. ' Close the splash form.
  10. ssiWaitDialog.TaskDone = True
  11. ssiWaitDialog.Hide
  12.  
  13. ' Re-activate the keyboard.
  14. Application.DataEntryMode = False
  15.  
  16. ' Set true when the long task is done.
  17. Public TaskDone As Boolean
  18.  
  19. Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer)
  20. Cancel = Not TaskDone
  21. End Sub
  22.  
  23. ' Deactivate the keyboard.
  24. Application.OnKey "^d", "KeyboardOn"
  25. Application.DataEntryMode = True
  26.  
  27. ' Display the splash form non-modally.
  28. ssiWaitDialog.TaskDone = False
  29. ssiWaitDialog.Show False
  30. DoEvents
Add Comment
Please, Sign In to add comment