Ciao Giorgio
Il codice si blocca in questo punto del codice
Call Sblocca(Me)
Cosa può essere?
Per maggior chiarezza ti copio il modulo
grazie
Public Sub Sblocca(ByRef MainForm As Form)
Dim ind As Integer
If MainForm.NomeSottomaschera = "MascheraPrincipale" Then
For ind = 0 To MainForm.Controls.Count - 1
If MainForm.Controls(ind).ControlType = 109 Then 'testo
MainForm.Controls(ind).Locked = False
End If
If MainForm.Controls(ind).ControlType = 111 Then 'combo
MainForm.Controls(ind).Locked = False
MainForm.Controls(ind).Enabled = True
End If
Next
Else
Dim subForm As Form
Set subForm = MainForm.Controls(MainForm.NomeSottomaschera).Form
For ind = 0 To subForm.Controls.Count - 1
If subForm.Controls(ind).ControlType = 109 Then 'testo
subForm.Controls(ind).Locked = False
End If
If subForm.Controls(ind).ControlType = 111 Then 'combo
subForm.Controls(ind).Locked = False
subForm.Controls(ind).Enabled = True
End If
Next
End If
End Sub