If you put into any module (except a Class module)
Public P As Integer ' (or whatever type fits your need)
then all code in your project (including
objects) will have access to it to read it or change it.
You could add to your 1st form
Private Sub Form_Activate()
P = Me.Frame19.Value
This might go better in _Load(). The idea is that it will run one time to initialize your variable.