Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Fix userform position and make it non-selectable? 1

Status
Not open for further replies.

knifey

Technical User
Nov 14, 2006
180
GB
Hi,
I have a progressbar on a userform which updates on each iteration of my loop.
My problem is that when my code is running and I attempt to move the progressbar window it leaves a trail on the screen (where the window was on the previous iteration).
Is there a way to stop the screen trails? Or if not, is there a way to fix the position of the userform on the screen so as it cannot be moved or selected by the user?
Any help or advice will be much appreciated.
Knifey
 
Your code is running when Application.ScreenUpdating is set to 'False'. Try either set it to 'True' (it can slow down the code if you work with cells) or use another way to inform user about the progress status (Application.StatusBar for instance).

combo
 
Thanks combo, Your a star!
Knifey
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top