|
こんばんは。
これで一応実行されるようです。
Sub オープンコピペ()
Dim myBookname As String
Dim ReturnBook As Workbook, TargetBook As Workbook
Set ReturnBook = ActiveWorkbook
Application.ScreenUpdating = False
myBookname = Application.GetOpenFilename("(*.XLS),*.XLS")
If myBookname <> "False" Then
Workbooks.Open myBookname
End If
Set TargetBook = ActiveWorkbook
Application.ScreenUpdating = True
TargetBook.Worksheets(2).Range("AQ4:AQ34").Copy
ReturnBook.Worksheets(2).Range("E5").PasteSpecial Paste:=xlValues, _
Operation:=xlNone, SkipBlanks:=False, Transpose:=False
TargetBook.Close False
Set TargetBook = Nothing
End Sub
|
|