本帖最后由 作者 于 2007-5-8 16:36:29 编辑
先谢谢楼上的朋友!感谢你!但你的代码会导致返回VBA窗口后VBA窗口无法获得焦点,但确实帮了我的大忙啊!我做了如下修改! 原来代码: Private Sub CommandButton1_Click() Dim StrLeft As Single Dim StrTop As Single Me.Hide ThisDrawing.SendCommand ("_bhatch") Me.Show 0 ShowModal = False End Sub 修改后代码: Private Sub CommandButton1_Click() Me.Hide ThisDrawing.SendCommand ("_bhatch ") Me.Show End Sub
再次感谢你!谢谢! |