Delete Page of a MultiPage

G

Guest

How do I remove pages from a MultiPage at run time? (The pages were added at
run time.)
This does not work for me.

Dim delpage As Page
For Each delpage In MultiPage1.Pages
If delpage .index > 2 Then
MultiPage1.Pages.Remove delpage
End If
Next

T.I.A.

Geoff
 
A

Andy Pope

Hi,

This worked for me.

Dim delpage As Page

For Each delpage In MultiPage1.Pages
If delpage.Index > 2 Then
MultiPage1.Pages.Remove delpage.Index
End If
Next

Cheers
Andy
 
G

Guest

Hi Andy
Thanks for that.

Geoff

Andy Pope said:
Hi,

This worked for me.

Dim delpage As Page

For Each delpage In MultiPage1.Pages
If delpage.Index > 2 Then
MultiPage1.Pages.Remove delpage.Index
End If
Next

Cheers
Andy
 
B

Bob Phillips

Dim delpage As Page
For Each delpage In MultiPage1.Pages
If delpage.Index > 2 Then
MultiPage1.Pages.Remove delpage.Index
End If
Next


--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top