2023-08-15から1日間の記事一覧

ExcelVBA タブで区切られたデータをクリップボード使わずに指定セルから貼り付け

Sub PasteTabDelimitedDataWithoutClipboard() Dim Data As String Dim Rows() As String Dim Cells() As String Dim r As Long, c As Long Dim StartCell As Range ' タブで区切られたサンプルデータ Data = "Name" & vbTab & "Age" & vbTab & "Address" & …

ExcelVBAでESCキー押された判定する関数作成

標準モジュールでのみ実装可能です #If Win64 Then Declare PtrSafe Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer #Else Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer #End If Function Is…