• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 12. Visio VBA Automation Basics > When, Where, and How to Run Your Auto...

When, Where, and How to Run Your Automation Program

Using VBA code as part of your solution makes the distribution of your application easy because the VBA code is held within the document itself. However, updating the code is difficult. In this section, I will discuss the CALLTHIS() function and how this new functionality can both enhance your solutions and, even more importantly, make them more portable.

Remember that the VBA code in your diagram is accessible to the user. However, you can protect the code from viewing by selecting Properties from the Tools menu from within VBA. Next, select the Protection tab and select Lock Project for Viewing, and then enter a password and confirm it. Finally, save your project and close it. The next time the project is opened, the project is locked, and a password must be entered to view or edit the project.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint