Hi, bonnie6850,
this is hard-coded for the files to open, will all the files be in one folder or shouldn´t be anything within the code to only open the workbnooks for a special day?
Code is untested as I´m running out of time for a test:
Sub Test1()
'
' Test1 Macro
Dim wbMaster As Workbook
Dim wbClone As Workbook
Dim strPath As String
Dim lngFree As Long
Dim lngLast As Long
strPath = CurDir
ChDir "C:\Users\bonnie.\Desktop\test\Test Files"
Set wbMaster = Workbooks.Open(Filename:= _
"C:\Users\bonnie.\Desktop\test\Test Files\Master Deliverables Spreadsheet __.xlsx")
With wbMaster.ActiveSheet.Range("D3")
.Value = .Value
End With
Set wbClone = Workbooks.Open("C:\Users\bonnie.\Desktop\test\Test Files\Mandy 4.30.13.xlsx")
lngFree = wbMaster.ActiveSheet.Cells(Rows.Count, "A").End(xlUp).Row + 1
lngLast = wbClone.ActiveSheet.Cells(Rows.Count, "A").End(xlUp).Row
wbaster.ActiveSheet.Rows(lngFree).Resize(lngLast).Value = wbClone.ActiveSheet.Rows(1).Resize(lngLast).Value
wbClone.Close False
Set wbClone = Workbooks.Open("C:\Users\bonnie.\Desktop\test\Test Files\Rob 4.30.13.xlsx")
lngFree = wbMaster.ActiveSheet.Cells(Rows.Count, "A").End(xlUp).Row + 1
lngLast = wbClone.ActiveSheet.Cells(Rows.Count, "A").End(xlUp).Row
wbaster.ActiveSheet.Rows(lngFree).Resize(lngLast).Value = wbClone.ActiveSheet.Rows(1).Resize(lngLast).Value
wbClone.Close False
wbMaster.SaveAs Filename:= _
"C:\Users\bonnie.\Desktop\test\Test Files\old\Master Deliverables Spreadsheet " & Format(Now(), "mm.dd.yy") & ".xlsx" _
, FileFormat:=xlOpenXMLWorkbook, CreateBackup:=False
With wbMaster
Select Case Day(Now())
Case 1, 21, 31
ordsuffix = "st"
Case 2, 22
ordsuffix = "nd"
Case 3, 23
ordsuffix = "rd"
Case Else
ordsuffix = "th"
End Select
.SendMail Recipients:=Array("b@aaaaaaaaaa.com", "b@aol.com"), Subject:="Deliverables Test- " & (MonthName(Month(Now()))) & (Day(Now())) & (ordsuffix)
End With
Set wbClone = Nothing
Set wbMaster = Nothing
ChDir strPath
End Sub
Ciao,
Holger
Bookmarks