"Changing the template" of a file programmaticaly

Started by mdebarros, July 12, 2021, 08:51:48 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mdebarros

Hello everyone,

First time writing on a forum so sorry if I don't get it right.

Let's get to the point :

I am currently working with Visio and I have been asked to make changes to the way they are created : added data/restricted changes/ etc to certain shapes, created and modified UserForms and their associated macros, etc.

Changes made, the problem I am up against now is: I have to "deploy" them to the 400+ diagrams we already had.

The approach I am willing to have is :

- Opening my template;

For all origin files
    - Save As "<name of origin file>"
    - Open the origin file
*    - Copy the all of the shapes from pages I need to be copied (not all of the pages)
*    - Paste to the new file (the one saved as...)
    - Resave the new file
End For

Although I think it may be a simple problem I am having a bit of trouble getting it done.

So I came to ask whether any of you folks could help me getting it done OR if you have any other helpful idea in order to solving this problem.

Huge thanks for all the help I have already found on this forum and hopefully for your attention on this issue.

Surrogate

Quote from: mdebarros on July 12, 2021, 08:51:48 AM
if you have any other helpful idea in order to solving this problem.
My advice
1. Start macro-recorder
2. Do all steps which you describe
3. Stop macro-recorder
4. Analyze code
5. Modify code for re-use