Moving pages takes awfully long

A

Aydan

Hi,

i have a 1200 page document here and want to sort the pages, but it takes
awfully long (about 7 minutes) for the macro to move one page. I already
tried to set ShowChanges to false but that didn't improve the situation much.
I'm wondering what Visio does while moving pages.
I'm running Visio 2003 on a P4 2,4 with 1GB RAM

Regards
Aydan
 
J

JuneTheSecond

How ScreenUpdating property did?
BTW, awfully much pages your document has, how does the file size amount?
 
J

JuneTheSecond

Really! It takes minutes of time to move just one page, when I move not only
by VBA but also by mouse drag. I've tryed after I've made 1200 pages of
document.
In this case, ScreenUpdating property and Application.Visible property are
found useless.
 
M

Mark Nelson [MS]

I wonder if the document is not fully loaded yet. When Visio opens a
multi-page document, it only loads the pages from disk as they are needed.
Your macro may be the first time a particular page is needed in a session.
Thus you are waiting for the page to load and not the macro itself. You
could verify this by placing the file on removable media such as a flash
drive. Visio does not delay load in this scenario.

--
Mark Nelson
Office Graphics - Visio
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no rights.
 
A

Aydan

Hi,

i don't think it's the load time, because if i run a macro beforehand which
updates all pages and then save the document is't the same thing. It really
seems to be some process that is asyncronous to the macro because it only
kicks in a few lines after "page.index = something". After playing around a
bit i found that in certain circumstances this happens only every few pages.
Dunno what starts it though.

Thanks anyway
Aydan

Mark Nelson said:
I wonder if the document is not fully loaded yet. When Visio opens a
multi-page document, it only loads the pages from disk as they are needed.
Your macro may be the first time a particular page is needed in a session.
Thus you are waiting for the page to load and not the macro itself. You
could verify this by placing the file on removable media such as a flash
drive. Visio does not delay load in this scenario.

--
Mark Nelson
Office Graphics - Visio
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no rights.
 
P

Paul Herber

Hi,

i have a 1200 page document here and want to sort the pages, but it takes
awfully long (about 7 minutes) for the macro to move one page. I already
tried to set ShowChanges to false but that didn't improve the situation much.
I'm wondering what Visio does while moving pages.
I'm running Visio 2003 on a P4 2,4 with 1GB RAM

I've just created 1000 blank pages (which takes a few minutes) then
moved page 1000 to between pages 998 and 999 - another few minutes.

I think you've reached the limit of the number of pages that Visio can
handle in a reasonable time.

An option that might work would be to swap the contents of the pages
(via an intermediate page) then rename the two pages.
 

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