Hi, Sharonn,
maybe use some objects for this (code is unteste):
Sub Sharonn()
Dim wbCode As Workbook
Dim wbData As Workbook
Set wbCode = ThisWorkbook
With Sheets("Master_Part_List")
.Cells.ClearContents
.Range("A1").Select
End With
Set wbData = Workbooks.Open("Z:\Jobs\HARTJE MAST.xlsx")
If Not wbData Is Nothing Then
With wbData.ActiveSheet
.Range(.Range("A1"), .Cells.SpecialCells(xlLastCell)).Copy
End With
End If
wbData.ActiveSheet.Range("A1").PasteSpecial Paste:=xlPasteValues, _
Operation:=xlNone, _
SkipBlanks:=False, _
Transpose:=False
Sheets("Bid Material").Select
wbData.Close False
Set wbData = Nothing
Set wbCode = Nothing
End Sub
Ciao,
Holger
Bookmarks