I'm trying to copy a range from a closed variable workbook (dimmed as fName). Can't get it to work and don't seem to be finding my error. Code is as seen below, I personally think the problem is with the variable fName but maybe I'm looking in the complete wrong direction.
Sub LotoRipper()
Dim fName As String
fName = Application.GetOpenFilename
Workbooks.Open fName
Workbooks(fName).Worksheets("LoTo Sleutellijst").Range("E13").Copy _
Workbooks("LOTO Sleutellijst O-M_rev4.3.xlsm").Worksheets("LoTo Sleutellijst").Range("E13")
End Sub
Trying to learn from this, so please explain what I did wrong instead of providing a solution, if possible.