Solved

VBA Visio 2013 - Deleting a page in Visio

Posted on 2013-12-19
2
1,463 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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 we’ll examine containers. We’ll explore lists (http://www.experts-exchange.com/Microsoft/Applications/M…
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 we’ll examine lists. We’ll explore containers and callouts in separate articles. Prior to reading th…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Edureka is one of the fastest growing and most effective online learning sites.  We are here to help you succeed.

911 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

16 Experts available now in Live!

Get 1:1 Help Now