I'm getting Run-time error '424' at the last line of the code and cannot undertand why. Any help please.
Dim sourceSh As Worksheet
Dim destSh As Worksheet
Dim FileName As String
Dim destWk As Workbook
Dim sourceWk As Workbook
FileName = "Data.xlsx"
Set destWk = Workbooks.Open(FileName)
Set sourceWk = DataEntry
Set sourceSh = sourceWk.Sheets(Data_Entry.Name) 'why here I'm not getting error !!
Set destSh = destWk.Sheets(Employees.Name) 'here I'm getting Run-time error 424.
I have cotroled speel check and everything looks fine.