调用SetFocus方法后Spread仍然无法获得焦点
问题出在Spread不失去焦点的情况下无法获得焦点
所以在调用按钮单击事件时(Button1_Click)要先使按钮获得焦点(Button1.SetFocus)

        vbSpread1.SetFocus
        vbSpread1.Col 
= 1
        vbSpread1.Row 
= 1

        vbSpread1.ACTION = ActionActiveCell 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-19
  • 2021-12-04
  • 2021-11-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-14
  • 2022-12-23
  • 2022-01-06
  • 2022-01-12
  • 2021-12-19
相关资源
相似解决方案