Hi. Any guess on why this macro is blocking the worksheet selectionchange macros after been triggered?
Thank you
![]()
Please Login or Register to view this content.
Hi. Any guess on why this macro is blocking the worksheet selectionchange macros after been triggered?
Thank you
![]()
Please Login or Register to view this content.
Last edited by 80Wil; 04-29-2017 at 09:50 AM.
Also those macros are blocking the selectionchange when triggered
![]()
Please Login or Register to view this content.
![]()
Please Login or Register to view this content.
Last edited by 80Wil; 04-29-2017 at 08:39 AM.
Yep, maybe something to do with the loop. Cause Previous and Next call a macro who has a loop itself...
![]()
Please Login or Register to view this content.
In the other hand this macro that also calls BuscarCodigo (just like previous and next above) that has a loop when triggered doesnt mess up with the selection change...
![]()
Please Login or Register to view this content.
Sorry... thinking better the selection change is not being affected... but the dynamic range... that should acts after the selection change
Suggest you post a sample workbook with some typical data and all your code.
Trevor Shuttleworth - Retired Excel/VBA Consultant
I dream of a better world where chickens can cross the road without having their motives questioned
'Being unapologetic means never having to say you're sorry' John Cooper Clarke
Yep! I'm finishing it... will post in a couple of minutes
So... I've reproduced what is happening in this attached file.
I have no clue.
I know if I change the position of the enable events to true right AFTER End If... the problem doesn't occur but the macro takes too long to perform. So that's not the solution.
ps Sheet2 has a macro inside.
PS Also if you push SAVE NEW RECORD will cause the bug mentioned in the sample...
Thank you
Last edited by 80Wil; 04-29-2017 at 12:02 PM.
One minor issue:
The code highlighted in red is, effectively, a cell selection change ... which will fire the Worksheet_SelectionChange. The code shown in blue demonstrates the impact of that selection change.![]()
Please Login or Register to view this content.
![]()
Please Login or Register to view this content.
However, the real issue, AFAICS is this:
Here, the code in red exits the subroutine without executing the code highlighted in blue.![]()
Please Login or Register to view this content.
Change the code to this:
![]()
Please Login or Register to view this content.
Last edited by TMS; 04-30-2017 at 07:53 PM. Reason: Change highlighted text colour
Beautiful!Thank you!
You're welcome. Thanks for the rep.![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks