Thread: DoEvents??
View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
Dnereb[_10_] Dnereb[_10_] is offline
external usenet poster
 
Posts: 1
Default DoEvents??


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