Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

VBA Visio 2013 - Deleting a page in Visio

Posted on 2013-12-19
2
Medium Priority
?
1,863 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 2000 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
Over the years I have built up my own little library of code snippets that I refer to when programming or writing a script.  Many of these have come from the web or adaptations from snippets I find on the Web.  Periodically I add to them when I come…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

916 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