English 中文(简体)
我怎么能够把其他应用窗口带往Excel VBA的前线?
原标题:How can I bring other applications windows to the front in Excel VBA?

我正在利用几项申请,逐步完成我的分析。

不使用Alt Tab 人工操作,我希望有一个纽托邦,它将启动下一个申请,使之为理由和重点。

还将有一个非模式的方言箱,在Excel VBA中加以编码,并围绕这一应用程序,如Microsoft Office的搜索方言箱。

All this functionality should be achieved in Excel VBA 2007.

问题回答

Later versions of Windows (starting with 2000) are somewhat stricter in activating other applications and forcing them to the front. See the Remarks section on the documentation of SetForegroundWindow.

但是,由于你想要模拟Alt+Tab,我认为你的最佳变化是利用keybd_event





相关问题
import of excel in SQL imports NULL lines

I have a stored procedure that imports differently formatted workbooks into a database table, does work on them then drops the table. Here is the populating query. SELECT IDENTITY(INT,1,1) AS ID ...

Connecting to Oracle 10g with ODBC from Excel VBA

The following code works. the connection opens fine but recordset.recordCount always returns -1 when there is data in the table. ANd If I try to call any methods/properties on recordset it crashes ...

Excel date to Unix timestamp

Does anyone know how to convert an Excel date to a correct Unix timestamp?

C# GemBox Excel Import Error

I am trying to import an excel file into a data table using GemBox and I keep getting this error: Invalid data value when extracting to DataTable at SourceRowIndex: 1, and SourceColumnIndex: 1. As ...

Importing from excel "applications" using SSIS

I am looking for any tips or resources on importing from excel into a SQL database, but specifically when the information is NOT in column and row format. I am currently doing some pre-development ...

热门标签