Problem with macro in outlook (vba) Not running

0

Good morning I'm doing a vba to outlook I found the following code and it worked, I began to add functions I need and everything was fine but I do not know what moved him that now the program (or macro) is no longer recognized by the outlook I already tried to restart everything (outlook and windows) delete the project and I created it again but I can not execute my macro In the 2 images, the name of the macro appeared and it was executed and everything worked fine any ideas?

    
asked by sanlegas 05.11.2018 в 18:09
source

1 answer

0

I'm not sure if I understand your question well, but I guess you mean you no longer have access to your macro. You say you changed something, but you do not know what.

I'll play it and say you changed the Access level. Seeing your code, I see that your macro starts as Private Sub , which means that it can only be accessed at the level of the object it is on. Try declaring all your functions and procedures as Public instead of Private to see if that solves your problem.

For more information about access levels and areas, I leave a link:

  

Understanding of scope and visibility

    
answered by 06.11.2018 в 11:18