I have buttons for going to other sheets in my workbook so I can hide other tabs to keep it cleaner. Everything worked fine until I added some userforms into the mix. Now when I use my button to activate another sheet it goes there but sometimes won't allow me to scroll. It happens when I change sheets after about 6 times, then it hangs. Seems like the userform isn't unloading properly.
What I do to get excel to respond is to change sheets with the defualt tab at the bottom (some sheets show 2 tabs some show only 1).
I have my userforms load as vbmodeless
Properties for each userform modal is False
One of my userforms
Private Sub CancelButton_Click()
Me.Hide
Unload Me
End Sub
I've been trying a bunch of things to get my worksheet to acts as normal with the userforms and nothing.
Any suggestions are greatly appreciated.
Application.screenupdating=truein theCancelButton_Click()Also you do not need to hide and then unload it. you can directly unload it. - Siddharth Routscreenupdating = truedidn't do anything. - Matt Taylor