Ruma
New Member
Hello,
Am using a macro to copy paste data from excel to note pad. This note pad is either saved on desktop or any share drive where the working file containing the macro is saved.
This note pad is manually uploaded in SAP currently, however now want to upload this directly y in SAP (RR1).
Could you please help me with the coding.
Current Code:
Regards,
Ruma
Am using a macro to copy paste data from excel to note pad. This note pad is either saved on desktop or any share drive where the working file containing the macro is saved.
This note pad is manually uploaded in SAP currently, however now want to upload this directly y in SAP (RR1).
Could you please help me with the coding.
Current Code:
Code:
Public Sub CopyToNotepad()
Dim strPath As String: strPath = ThisWorkbook.Path & "\" & Range("E1").Value & ".txt"
Dim intFF As Integer: intFF = FreeFile()
Open strPath For Output As #intFF
Print #intFF, Join(Application.Transpose(Range("A1:A" & Range("A" & Rows.Count).End(xlUp).Row).Value), vbCrLf)
Close #intFF
End Sub
Ruma
Attachments
Last edited by a moderator: