Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
while my c# code running ,clicks on excel document interrupts code
lets take from beginning...
create a c# project; create a form and button. when button clicked; program changes the interior color of cells in an excel document which is blank and opened in formload event. after program started, if you dont touch anything, program fills all cells properly. But while processing, if you clicked on some cells randomly, program skips some of cells and go on processing. why does it do that? i mean ;my clicks somehow interrupts program but it doesnt return any error. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
while my c# code running ,clicks on excel document interrupts code
Suggest you need to check you C# code. This is not the place to debug C
-- Regards, Nigel "Kayıhan" wrote in message ... lets take from beginning... create a c# project; create a form and button. when button clicked; program changes the interior color of cells in an excel document which is blank and opened in formload event. after program started, if you dont touch anything, program fills all cells properly. But while processing, if you clicked on some cells randomly, program skips some of cells and go on processing. why does it do that? i mean ;my clicks somehow interrupts program but it doesnt return any error. |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
while my c# code running ,clicks on excel document interrupts code
Try preventing user interrupts like Mouse-clicks by switching EnableEvents
to false. You may also need to set Application.CalculationInterruptKey and think about Application.EnableCancelKey Charles ___________________________________ The Excel Calculation Site http://www.decisionmodels.com "Kayihan" wrote in message ... lets take from beginning... create a c# project; create a form and button. when button clicked; program changes the interior color of cells in an excel document which is blank and opened in formload event. after program started, if you dont touch anything, program fills all cells properly. But while processing, if you clicked on some cells randomly, program skips some of cells and go on processing. why does it do that? i mean ;my clicks somehow interrupts program but it doesnt return any error. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Escape Key Interrupts Code Execution in Add-In | Excel Programming | |||
Excel does not execute a button's code when another macro simulates mouse movements & clicks | Excel Programming | |||
How can I update VBA code in a module that is running my VBA code? | Excel Programming | |||
A VBA code that clicks a checkbox | Excel Programming | |||
controlling another application via VBA code in Excell & sending keystrokes & mouse clicks | Excel Programming |