Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Newsgroup Archive
Excel Newsgroups
Excel Programming
why does the execution jump to another procedure?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Patrick Molloy, post: 6390218"] if there is a sheet change event, you can disable it using using the Application.EnableEvents method .. Private Sub InsertRow() Dim myRow As Long Application.EnableEvents = False myRow = ActiveCell.Row Do Until Cells(myRow, 2) <> Cells(myRow + 1, 2) myRow = myRow + 1 Loop Rows(myRow).Insert Rows(ActiveCell.Row).Select Application.EnableEvents = True End Sub [/QUOTE]
Verification
Post reply
Forums
Archive
Newsgroup Archive
Excel Newsgroups
Excel Programming
why does the execution jump to another procedure?
Top