• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1926
  • Last Modified:

VBA Visio 2013 - Deleting a page in Visio

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
brothertruffle880
Asked:
brothertruffle880
  • 2
1 Solution
 
Chris BottomleyCommented:
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
 
Chris BottomleyCommented:
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

[Webinar] Improve your customer journey

A positive customer journey is important in attracting and retaining business. To improve this experience, you can use Google Maps APIs to increase checkout conversions, boost user engagement, and optimize order fulfillment. Learn how in this webinar presented by Dito.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now