ce*******@yahoo.com wrote:
Is there a way to list (through VBA code) all the controls on an open
form including subforms, tab controls and all other containers as well.
My specific issue is to find all controls with a FontSize property and
adjust it as needed.
When I use "For each ctrl in Me.controls" I dont get the subform
controls or other container controls.
I'm using labels, combos, text, tabs, datasheet/form subforms, and
anything will a font property.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
A subform control doesn't have any Font property.
To identify the control type have you used the TypeOf predicate?
If typeof ctrl is SubForm Then
' iterate thru the subform's controls
end if
--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)
-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv
iQA/AwUBQmhULoechKqOuFEgEQJKtgCZAfdwvF4g21OyjTMUEW+WA3 369igAnAgZ
ISyDFin5ToWnTUNyvKsxGB+r
=Pjcv
-----END PGP SIGNATURE-----