View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
GregJG[_11_] GregJG[_11_] is offline
external usenet poster
 
Posts: 1
Default need help understanding syntax for adding a page to multipage

this is the syntax the help page says to add a page to a multipage

Set Object = object.Add( [ Name [, Caption [, index]]])

so I created a commandbutton, outside of the multipage control an
coded as;

private sub commandbutton1_click()
set multipage1 = page.add( [page3 [, Page3 [, 2]]])
end sub

but I am receiving an error

"invalid use of property" and Multipage1 is highlighted.

I have checked the name and it is correct.


any help

--
Message posted from http://www.ExcelForum.com