Function ResizeFooter() As Long
Dim w As Long, h As Long, lngTotalInches As Long, lngxTwips As Long, lngyTwips As Long
w = GetSystemMetrics32(0) ' width in points
h = GetSystemMetrics32(1) ' height in points
lngxTwips = (w / 72) * 1440
lngyTwips = (h / 72) * 1440
ResizeFooter = lngyTwips - Forms(Application.CurrentObjectName).Detail.Height
End Function