老师这个代码怎么写到全局代码,这样写不对。
Public myTable As StringIf Forms("主窗口").Opened Then myTable = Forms("主窗口").Controls("TabControl1").SelectedPage.textEnd If