我在VBA上看上去很簡單的代碼,試圖創建一個按Enter鍵觸發的事件。 因此,這裏是我的工作簿中的代碼: Option Explicit
Private Sub Workbook_Open()
Application.OnKey "", "pressEnter"
End Sub
又該模塊中發生: Public Sub pressEnter()
ThisWorkb
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Dat