Rename pages makes VBA to not function

J

j2206943s

Hello All,

I am working on a project that I have created macros to auto-export the
pages in the visio project to emf files whenever a save event is registered.
The problem that I found today was when I renamed the pages to what I wanted
them to be, they retained the previous name. Is there any way to fix it so
that it is the correct name for the VBA macro to function properly?

I am using Visio Professional 2003 (11.3216.8221)

Thanks,

Jeff
 
P

Paul Herber

Hello All,

I am working on a project that I have created macros to auto-export the
pages in the visio project to emf files whenever a save event is registered.
The problem that I found today was when I renamed the pages to what I wanted
them to be, they retained the previous name. Is there any way to fix it so
that it is the correct name for the VBA macro to function properly?

Visio pages have two names, a Name and a NameU, see
http://blogs.msdn.com/visio/archive/2006/07/27/679625.aspx

You macro might be using the NameU, the Name might be more
appropriate.
 
J

j2206943s

Hi Paul,

Thanks for the reply. I read the article you provided. My next question:
Is there any way to force visio to change the name? Or should I just start a
new visio project and create the pages with the names I want to use?

Thanks,

Jeff
 
P

Paul Herber

Hi Paul,

Thanks for the reply. I read the article you provided. My next question:
Is there any way to force visio to change the name? Or should I just start a
new visio project and create the pages with the names I want to use?

You can write a macro to force the page Name and NameU to be identical
or you can use a utility I've written that will do the job (and many
others) at
http://www.visio-utilities.sandrila.co.uk/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top