Whoops! Dave is right... the Indexes for MultiPage are zero-based, so my
code should have been...
With MultiPage1
For X = 0 To .Pages.Count - 1
MultiPage1.Pages(X).Enabled = True
Next
End With
Rick
"Rick Rothstein (MVP - VB)" <(E-Mail Removed)> wrote in
message news:(E-Mail Removed)...
> Try it this way...
>
> With MultiPage1
> For X = 1 To .Pages.Count
> MultiPage1.Pages(X).Enabled = True
> Next
> End With
>
> You can address individual pages via its Index in the Pages collection.
>
> Rick
>
>
> "Yajiv" <(E-Mail Removed)> wrote in message
> news:6dc12321-8194-432f-971d-(E-Mail Removed)...
>>I have a multipage with four pages. I want to enable them when some
>> condition is satisfied. How can i do that? The intelli-sense is not
>> displaying my page names.
>
|