Results 1 to 11 of 11

Thread: Calling a forms Public routine

Threaded View

  1. #1

    Thread Starter
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Resolved Calling a forms Public routine

    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.
    Code:
    Dim frm as Form
    
    For Each frm in Forms
    
       If frm.Visible Then CallByName frm, "ResizeForm", VbMethod
    
    next
    Any solutions?

    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.
    Last edited by randem; Aug 2nd, 2007 at 01:29 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width