• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Vba Interruption

Brijesh

Member
Hi,

I have written a macro for a specific purpose. I want that if a user interrupt the macro during run then macro should hide Column A to Column C on sheet 1 of the workbook before leaving. Is it possible? If yes, please suggest the code.

Thanks
Brijesh
 
One possible idea.
You gotta add two lines to You Macro.
In the beginning, You have to set [A1]'s background color to 'any color'
and
just before the end, You have to set [A1]'s background color to 'xlnone'.
Of course, it's possible to select another 'trigger-point' too.
 

Attachments

Back
Top