AlexanderBB
Well-known Member
- Joined
- Jul 1, 2009
- Messages
- 2,072
- Office Version
- 2019
- 2010
- Platform
- Windows
Was designing a Form and everything working fine when all of a sudden everything you click on "dings" at you.
I have to Control-Beak and the code is hung on the Line MyForm.Show.
Pressing F8 re-runs the same subroutine and/or (at times) has brought up
Run-time error '400':
Form already displayed; can't show modally
From Google
You can't use the Show method to display a visible form as modal. This error has the following cause and solution:
You tried to use Show, with the style argument set to 1 - vbModal, on an already visible form.
Use either the Unload statement or the Hide method on the form before trying to show it as a modal form.
I do have ShowModal set true, but this has been ok for three days until now.
I've tried setting this False also put unload before show, but it makes no difference.
Can anyone help, please
I have to Control-Beak and the code is hung on the Line MyForm.Show.
Pressing F8 re-runs the same subroutine and/or (at times) has brought up
Run-time error '400':
Form already displayed; can't show modally
From Google
You can't use the Show method to display a visible form as modal. This error has the following cause and solution:
You tried to use Show, with the style argument set to 1 - vbModal, on an already visible form.
Use either the Unload statement or the Hide method on the form before trying to show it as a modal form.
I do have ShowModal set true, but this has been ok for three days until now.
I've tried setting this False also put unload before show, but it makes no difference.
Can anyone help, please