ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   load userform from other VBProject (Excel 2000) (https://www.excelbanter.com/excel-programming/272818-re-load-userform-other-vbproject-excel-2000-a.html)

Keith Willshaw

load userform from other VBProject (Excel 2000)
 

"Fero Bokor" wrote in message
...
Hi all,

is it possible to load (to show) a UserForm from other VBAProject ?
There is a Reference between ActiveVBProject and the other VBAProject .
Thanks a lot ...

Fero


Not directly but you can call a procedure in code module in that
other workbook which shows the form

Example

In Project A you have a form called MyForm

Create a code Module called MyCode and add the
procedure

Public Sub ShowMyform

MyForm.Show

End Sub

In Project B after you have set a reference you
can say

A.ShowMyform

Keith



Fero Bokor

load userform from other VBProject (Excel 2000)
 
It works ...
Thanks, Keith
Fero





All times are GMT +1. The time now is 12:07 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com