VB Code:
  1. '*******************************************************************************
  2. ' SCREENSIZE (SUB)
  3. '
  4. ' DESCRIPTION:
  5. ' DETERMINE SCREEN SIZE
  6.  '*******************************************************************************
  7.  
  8. Sub SCREENSIZE()
  9.    
  10.     Dim iWidth As Integer
  11.    
  12.     Dim iHeight As Integer
  13.    
  14.     iWidth = Screen.Width / Screen.TwipsPerPixelX
  15.    
  16.     iHeight = Screen.Height / Screen.TwipsPerPixelY
  17.    
  18.     RESOLUTION = iWidth & "X" & iHeight
  19.    
  20. End Sub