ghudson
Registered User.
- Local time
- Today, 01:14
- Joined
- Jun 8, 2002
- Messages
- 6,193
And that could not be any easier using the InsideHeight & InsideWidth commands...
	
	
	
		
 
		Code:
	
	
	Private Sub Form_Open(Cancel As Integer)
On Error GoTo Err_Form_Open
    
    'just for testing
    MsgBox "InsideHeight = " & InsideHeight & vbCrLf & vbLf & "InsideWidth = " & InsideWidth
    
    InsideHeight = 5450 'twips is the unit of measurement
    InsideWidth = 7870
    
Exit_Form_Open:
    Exit Sub
    
Err_Form_Open:
    MsgBox Err.Number & " - " & Err.Description
    Resume Exit_Form_Open
    
End Sub 
	 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		