Solved

VBA Visio 2013 - Deleting a page in Visio

Posted on 2013-12-19
2
1,421 Views
Last Modified: 2013-12-20
I'm trying to delete one page using VBA and I get the following error (See graphic).
I tried placing the code in Visio Objects and in modules  (see graphic also)

error
0
Comment
Question by:brothertruffle880
  • 2
2 Comments
 
LVL 59

Accepted Solution

by:
Chris Bottomley earned 500 total points
ID: 39731156
YOu are missing a required parameter ... renumber remaining pages yes or no i.e.:

activedocument.Pages("too big photos").Delete(false)
or
activedocument.Pages("too big photos").Delete(true)

as appropriate

Chris
0
 
LVL 59

Expert Comment

by:Chris Bottomley
ID: 39731164
Note to help understanding, in your document the renumber property will have no bearing where all pages are renamed from the default Page-n style BUT the property is still required as there is no default.

Chris
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

The ability to add structure to Visio diagrams using containers, lists and callouts is one of my favorite features in Visio 2010. In this article I’ll describe a mashup of containers and lists that meet a real-world need. Prior to reading this ar…
Meetings to discuss business process can waste time, and often do .  The meeting's dialog can get confusing when participants have different professional perspectives and backgrounds.  A jointly-developed process picture helps wade through the confu…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now