Results 1 to 3 of 3
  1. #1
    Silver Lounger
    Join Date
    Dec 2000
    Location
    California, USA
    Posts
    1,758
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Running a Private Sub on a UserForm (XP)

    Is it possible to run a private sub on a UserForm located within another workbook?

    Example: From within File_01
    application.Run "File_02.xls![UserForm1].Run_Private_Sub"

    Thanks,
    John

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Running a Private Sub on a UserForm (XP)

    Not as far as I know. Place the code in a procedure in a standard module, you can then call it from the userform and from other modules.

  3. #3
    Silver Lounger
    Join Date
    Dec 2000
    Location
    California, USA
    Posts
    1,758
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Running a Private Sub on a UserForm (XP)

    Thanks Hans,

    <img src=/S/bummer.gif border=0 alt=bummer width=15 height=15> John

Posting Permissions

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