+ Reply to Thread
Results 1 to 2 of 2

Automatically generate user forms

  1. #1
    Rominall
    Guest

    Automatically generate user forms

    Okay, I think I'm missing something basic here. I have 2 user forms; i.e.
    Games, Players. I want to generate 6 players forms for each number of games
    entered in the "Games" form. How do I set this up? I have a "Next" button
    on the "Games" form that will bring up the "Players" form but how do I keep
    generating the players forms and how do I set up the variables/controls on
    the "Players" forms to keep track of the information inputed.

  2. #2
    Jim Cone
    Guest

    Re: Automatically generate user forms

    Something like this...
    '----------------
    Private Sub CommandButton1_Click()
    Dim frmCopy As UserForm
    Dim sngLeft As Single
    Dim sngTop As Single

    sngLeft = Me.Left + 15
    sngTop = Me.Top + 15
    Set frmCopy = New frmGames

    With UserForms(UserForms.Count - 1)
    .StartUpPosition = 0
    .Left = sngLeft
    .Top = sngTop
    .Caption = "Players " & UserForms.Count
    .Show
    End With
    End Sub

    Private Sub CommandButton2_Click()
    Me.Hide
    Unload Me
    End Sub
    '-------------
    Jim Cone
    San Francisco, USA
    http://www.realezsites.com/bus/primitivesoftware



    "Rominall" <Rominall@discussions.microsoft.com>
    wrote in message
    Okay, I think I'm missing something basic here. I have 2 user forms; i.e.
    Games, Players. I want to generate 6 players forms for each number of games
    entered in the "Games" form. How do I set this up? I have a "Next" button
    on the "Games" form that will bring up the "Players" form but how do I keep
    generating the players forms and how do I set up the variables/controls on
    the "Players" forms to keep track of the information inputed.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1