Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / June 2004

Tip: Looking for answers? Try searching our database.

Adding multipages,pages'labels, checkboxes to Userform

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Stephen English - 09 Jun 2004 05:16 GMT
I have successfully added a multipage to a form and then added a page to it but when I try to add a label, it puts it on the main form not the multipage and it won't add a checkbox at al
I hope you can give me some clue
Regard
Stephen Englis

Dim mp As MultiPag
Dim pg As pag
Dim lblClause As Labe
Dim cbone As CheckBo

Set mp = Me.Controls.Add("Forms.MultiPage.1", "mpage", True
With m
   .Height = 15
   .Top = 23
   .Width = 51
   .Left = 1
   
   Set pg = .Pages.Add("lblclause999"
   With p
       Set lblClause = Me.Controls.Add("Forms.Label.1", "lblClause"
       With lblClaus
           .Top = 30
           .Width = 5
           .Caption = "working
       End With      
   End Wit
End Wit
Peter Hewett - 09 Jun 2004 06:28 GMT
Hi Stephen English

Change the following statement:
   Set lblClause = Me.Controls.Add("Forms.Label.1", "lblClause")

to:
   Set lblClause = pg.Controls.Add("Forms.Label.1", "lblClause")

HTH + Cheers - Peter


Stephen English <anonymous@discussions.microsoft.com>, said:

>I have successfully added a multipage to a form and then added a page to it but when I try to add a label, it puts it on the main form not the multipage and it won't add a checkbox at all
>I hope you can give me some clues
[quoted text clipped - 23 lines]
>    End With
>End With
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.