+ Reply to Thread
Results 1 to 2 of 2

Pathing of subRoutines

  1. #1
    Forum Contributor
    Join Date
    01-09-2009
    Location
    Cedar Hill, Tx
    MS-Off Ver
    Excel 2003
    Posts
    200

    Pathing of subRoutines

    Howdy, y-all:

    How can I refer to a subRoutine resident in userForm1, for instance, from a macro in module1, for instance? Generically, under what circumstances must I be aware of and deal with "pathing"?

    Thanks.

    Bob
    Last edited by bstubbs; 09-20-2009 at 01:28 PM.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,431

    Re: Pathing of subRoutines

    If the subroutine is declared public then you should be able to reference it via the userform

    Please Login or Register  to view this content.
    This will cause the userform to load if not already loaded.

    If the routine is specific to the userform why are you wanting to reference it from a standard code module? Should you not put the routine in the standard code module and reference it from the userform?
    Last edited by shg; 09-15-2009 at 11:41 AM.
    Cheers
    Andy
    www.andypope.info

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1