Skip to main content
11 events
when toggle format what by license comment
Apr 13, 2017 at 12:40 history edited CommunityBot
replaced http://codereview.stackexchange.com/ with https://codereview.stackexchange.com/
Feb 3, 2017 at 22:32 vote accept Vityata
Feb 3, 2017 at 13:45 comment added Mathieu Guindon QueryClose must be handled in the userform module. Anywhere else and it's dead code.
Feb 3, 2017 at 13:15 comment added Vityata I have frmMain, modMain and clsSummaryPresenter. I have tried to put the QueryClose code anywhere, just to get something running on the immediate window. No success so far. Feel free to push in GitHub with anything.
Feb 3, 2017 at 13:09 comment added Mathieu Guindon Form event handlers have to be in the form's code-behind
Feb 3, 2017 at 13:08 comment added Vityata Yeah, QueryClose is what I need. I have put the following in clsSummaryPresenter, but it does not even enter the code - pastebin.com/NQ68Bpgn
Feb 3, 2017 at 12:52 comment added Mathieu Guindon You still need to handle QueryClose and prevent the form from unloading itself.
Feb 3, 2017 at 12:20 comment added Vityata Actually, I found out when exactly it crashes - if I close the form with the X on the top right corner, the next initialization breaks with the errors I have shown.
Feb 3, 2017 at 10:09 comment added Vityata Hi again! :) I have ran it and it seems that sometimes there is an error. The error is in Public Sub Show of clsSummaryPresenter` On the line -> If Not objSummaryForm.Visible Then. It is because the code checks an object for visibility, which is nothing. The screenshots are the two *.png files in the repository here - github.com/Vitosh/VBA_personal/tree/master/…. I am trying to build some kind of boilerplate for a form for some future projects.
Feb 2, 2017 at 22:22 comment added Vityata Impressive! Thanks, I wIll take a better look at it tomorrow :)
Feb 2, 2017 at 21:19 history answered Mathieu Guindon CC BY-SA 3.0