Dim a As unit_day
set a = new unit_day

解决方案 »

  1.   

    不行,他说'无效使用new关键字'
      

  2.   

    是OCX还是DLL?
    OCX可以放到工具栏。DLL需要在工程中引用。
      

  3.   

    在工程里新建的用户控件,需要怎么注册?保存的是ctl文件。工具栏里有他,我是想用程序建立实例。
      

  4.   

    试试:Dim a As object
    Set a = CreateObject("unit_day")
      

  5.   

    如果行就好了,很可惜不行。我用contrals.add创建,但他的属性怎么也出不来,怎么办啊?