Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Option Explicit
- Public variable As Long
- Private Sub cmdCommand1_Click()
- Static Cont As Long
- Cont = Cont + 1 ' Para el ejemplo
- ' Form es un nuevo formulario dinamico de Form1
- Dim Form As New Form1
- Form.variable = Cont ' aquí puedes establecerle las variables que desees, modificar textbox, etc
- Form.Show ' aquí lo muestras finalmente
- End Sub
- Private Sub Form_Load()
- Me.Print variable
- End Sub
Advertisement
Add Comment
Please, Sign In to add comment