kanadaaa
Active Member
- Joined
- Dec 29, 2019
- Messages
- 349
- Office Version
- 365
- Platform
- Windows
Hi, I have a question about userforms.
Say, we have a very simple form with just one commandbutton on it with the code below:
When the button is hit, the form still "flashes" when it goes invisible and then comes back visible.
It thus seems Application.ScreenUpdating = False doesn't prevent this.
Is there any way to prevent it? Thanks.
Say, we have a very simple form with just one commandbutton on it with the code below:
VBA Code:
Private Sub CommandButton1_Click()
Application.ScreenUpdating = False
Me.Hide
Me.Show
Application.ScreenUpdating = True
End Sub
It thus seems Application.ScreenUpdating = False doesn't prevent this.
Is there any way to prevent it? Thanks.