Hi, all! I have found and inserted a module to center text vertically (don't even get me started about how that isn't just a part of Access
), and it is called VerticallyCenter. The forum I found it on said to use it as:
But I have a metric S-Tonne of controls to center, so I tagged the controls with "Center" and wanted to use something like this:
But I can't figure out the correct syntax.
Thanks for your help!!
Here's the module, for anyone interested:

Code:
VerticallyCenter Me.YourLabelControlName
Code:
Private Sub Form_Load()
For Each vntControl In Me.Controls
If vntControl.Tag = "Center" Then
VerticallyCenter
End If
Next vntControl
End Sub
Thanks for your help!!
Here's the module, for anyone interested:
Code:
Private Sub VerticallyCenter(ctl As Control)
Dim lngHeight As Long
lngHeight = fTextHeight(ctl)
' Rounding will result in a 1 to 2 pixel margin of error
' of every control before it renders text.
ctl.TopMargin = ((ctl.Height - lngHeight) / 2)
End Sub