After copying the Range A1:XFD1048576 and paste while I close the workbook I get the dialogue. Although I keep display alerts off.
I want the clipboard to be cleared what is the code to clear clipboard. E.g Openworkbook = Nothing doesn't work.
Also OpenBook.Close False the open book is closed for both False and True

Sub Get_Data_From_File()
Dim FileToOpen As Variant
Dim OpenBook As Workbook
Application.ScreenUpdating = False
Application.DisplayAlerts = False
FileToOpen = Application.GetOpenFilename(Title:="Browse for the detailed CSV file", FileFilter:="CSV Files (*.csv*),*csv*")
If FileToOpen <> False Then
Set OpenBook = Application.Workbooks.Open(FileToOpen)
OpenBook.Sheets(1).Range("A1:XFD1048576").Copy
Windows("Macro Template.xlsm").Activate
ActiveSheet.Range("A1").Select
ActiveSheet.Paste
ActiveSheet.Range("A1").Select
OpenBook.Close False
Application.ScreenUpdating = True
Application.DisplayAlerts = True
End If
End Sub