Good day guys,
I need to copy and paste data from a range into a new blank notepad. I can get the notepad open and copy the data, but for some reason, it does not paste the data in the notepad. Any advice, please?
The range is in sheet "listing" from Columns A and B the range has to be dynamic as the range changes. I have to copy from Column A to C to the end of the last row based in Column A. The code I have sofar is:
Sub Open_NotePad()
Dim myApp As String
myApp = Shell("Notepad", vbNormalFocus)
With Sheets("Listing").Select
Range("A1:C1").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Copy
End With
SendKeys "^V"
SendKeys "^{HOME}"
Application.Goto Worksheets("SAP Listing").Range("A1")
End Sub
I need to copy and paste data from a range into a new blank notepad. I can get the notepad open and copy the data, but for some reason, it does not paste the data in the notepad. Any advice, please?
The range is in sheet "listing" from Columns A and B the range has to be dynamic as the range changes. I have to copy from Column A to C to the end of the last row based in Column A. The code I have sofar is:
Sub Open_NotePad()
Dim myApp As String
myApp = Shell("Notepad", vbNormalFocus)
With Sheets("Listing").Select
Range("A1:C1").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Copy
End With
SendKeys "^V"
SendKeys "^{HOME}"
Application.Goto Worksheets("SAP Listing").Range("A1")
End Sub