Professional Documents
Culture Documents
Application.DisplayAlerts = False
End If
ThisWorkbook.Activate
Sheets(DestinationSheet).Range("A2").PasteSpecial Paste:=xlPasteFormats
Sheets(DestinationSheet).Range("A2").PasteSpecial
Paste:=xlPasteValuesAndNumberFormats
SourceWorkbook.Save
SourceWorkbook.Close
CopySheetFromAnotherFileFormat=True
Done:
Exit Function
Exception:
CopySheetFromAnotherFileFormat=False
End Function
Worksheets(DestinationSheet).Activate
ActiveSheet.Rows("2:" &
Application.ActiveSheet.UsedRange.Rows.Count).ClearContents
End If
ThisWorkBook.Save
ClearContent=True
Done:
Exit Function
Exception:
ClearContent=False
End Function
Application.DisplayAlerts = False
End If
ThisWorkbook.Activate
Sheets(DestinationSheet).Range("A2").PasteSpecial Paste:=xlPasteFormats
Sheets(DestinationSheet).Range("A2").PasteSpecial
Paste:=xlPasteValuesAndNumberFormats
SourceWorkbook.Save
SourceWorkbook.Close
CopySheetFromAnotherFileFormat=True
End Function