I want to delete and reorder columns in a downloaded csv file, then copy the remaining data into a sheet in another, master workbook.
Open both attached spreadsheets
With The Sample_PASTE_FROM
workbook active, CTRL+SHIFT+S
to run the macro
With the Ref edit user-form, click Range("A2")
in the Sample_PASTE_TO
I have succeeded right up until the Copy and paste command.
This is the code from the Ref edit Userform OK click command
Private Sub cmd_OK_Click()
'This will paste the copied data from the Braintree
' Settlement Batch Summary Report
Dim rBraintree As Range 'First Cell in Braintree tab to paste info.
Dim strAddress As String 'Ref Edit address
'Address of paste area from refedit control
strAddress = ref_Recon.Value
'Set Paste Range
Set rBraintree = Range(strAddress)
'Activate the second workbook to paste the data
'Select the paste destination cell
'Paste the data
'Reset the ref_Recon refedit control
It seems that the CutCopyMode does not remain active when passing from the module with the code to the Userform.
Can someone help, please?
Thanks very much