Win11下边的代码为什么没作用,Win10运行没问题
vb.net吧
全部回复
仅看楼主
level 1
tobeBT 楼主
Sub Main()
Dim wb, sht, rng, xlsApp
On Error Resume Next
Set xlsApp = GetObject(, "Excel.Application")
If xlsApp Is Nothing Then
Set xlsApp =CreateObject("Excel.Application")
End If
Set wb = MsgBox(wb.Name, 64, "xx")
End Sub
2024年03月21日 09点03分 1
level 1
tobeBT 楼主
Win10可以获得当前已经打开的表格名称Win11没作用
2024年03月21日 09点03分 2
level 1
tobeBT 楼主
倒三行set wb=xlsapp·发布的时候自自动不可见activeworkbook
2024年03月22日 02点03分 3
level 1
tobeBT 楼主
发一段数字试试
516041515844
516349514150
514143516250
514744514142
2024年08月31日 02点08分 4
level 1
tobeBT 楼主
发一段数字514146514661
2024年08月31日 03点08分 6
今天的4143516261 4744514142
2025年03月19日 07点03分
level 1
tobeBT 楼主
再发514548514342
2024年10月15日 01点10分 7
level 4
com接口没注册
2024年10月18日 14点10分 8
level 1
tobeBT 楼主
周末4443514443
2025年03月23日 05点03分 11
level 1
tobeBT 楼主
周三514548514342
2025年07月03日 02点07分 12
level 1
tobeBT 楼主
514548514342胡盼盼
2025年07月03日 06点07分 13
这一次514249515043 516344516363
2025年09月29日 06点09分
level 1
tobeBT 楼主
周三二514950514644
2025年07月03日 06点07分 14
level 1
tobeBT 楼主
514249515042这
2025年09月29日 06点09分 17
level 1
tobeBT 楼主
发514358514761
2025年10月15日 06点10分 18
1