Use doevents to prevent hanging your system....
but use statics in your code to flag if the procces is already running
like this for a command button:
Code
-------------------
Static boolean AlreadyClicked
if Not Alreadyclicked
AlreadyClicked = true
'Do Your Stuff
Doevents
'do more stuff
Alreadyclicked = false
end i
-------------------
--
Dnere
-----------------------------------------------------------------------
Dnereb's Profile:
http://www.excelforum.com/member.php...fo&userid=2618
View this thread:
http://www.excelforum.com/showthread.php?threadid=39657