First time poster and I have looked at other responese for the issue, but I need verification of the code.So I have this code below, im pretty sure it is correct but the destination range is not clearing the contents. What I'm trying to do is copy the data from Range ("A:G") in the active workbook to Range("A:G") in a different workbook. But i need to clear the contents on the destination range becauese I need only the most updated source range in the destination range. The commented sections are code I will use once I know the contents are cleared on the destination range.
Sub CopytoRISKreport()
Dim Dest_file_name As String
Dim dest_wkbk As Workbook
Dest_file_name = "Q:\Co Risk Report\3 Month RISK Report.xlsm"
Set dest_wkbk = Workbooks.Open(Dest_file_name)
Application.DisplayAlerts = False
With dest_wkbk
Sheets("CO_HOLDS Import").Range("A1:G" & .Rows.Count).ClearContents
'Workbooks("Q:\Co Risk Report\CO Holds.xls").Select
'Selection.Worksheets("CO_HOLDS Import").Range("A:G").Copy
'dest_wkbk.Sheets("CO_HOLDS Import").Range("A:G").PasteSpecial Paste:=xlPasteValues
End With
End Sub