ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to ignore user input during macro execution? (https://www.excelbanter.com/excel-programming/416453-how-ignore-user-input-during-macro-execution.html)

J. Andrew Smith

How to ignore user input during macro execution?
 
I have a macro that asks two yes-no questions to start. I generally answer
them yes and no by hitting Y-N very quickly. Sometimes I'm so quick that the
N goes into the currently selected cell, where Excel thinks I'm entering a
string. When I hit Escape, the macro stops, and the N is still there.

How do you get a macro to ignore all user input unless and until a message
or input box comes up?

--
J. Andrew Smith
Senior Systems Analyst
Standard & Poor''s, NYC


Mike H

How to ignore user input during macro execution?
 
Hi,

Can we see the part of the macro that accepts this input?

Mike

"J. Andrew Smith" wrote:

I have a macro that asks two yes-no questions to start. I generally answer
them yes and no by hitting Y-N very quickly. Sometimes I'm so quick that the
N goes into the currently selected cell, where Excel thinks I'm entering a
string. When I hit Escape, the macro stops, and the N is still there.

How do you get a macro to ignore all user input unless and until a message
or input box comes up?

--
J. Andrew Smith
Senior Systems Analyst
Standard & Poor''s, NYC



All times are GMT +1. The time now is 05:10 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com