Sub FormCentr(Frm as Form) 'Frm is an object variable, passed by refernce With Frm .Top = X .Left = Y End With End Sub