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
brothertruffle880Asked:
Who is Participating?
 
Chris BottomleyConnect With a Mentor Software Quality Lead EngineerCommented:
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 BottomleySoftware Quality Lead EngineerCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.