I want to call a forms public routine (of my own making) and I want to do it dynamically by using the forms collection. I can't seem to make it work
Ex.
Any solutions?Code:Dim frm as Form For Each frm in Forms If frm.Visible Then CallByName frm, "ResizeForm", VbMethod next
The only way this works is if I substitute the frm for the actual form name (being it's an object) in the CallByName call.




Reply With Quote