I am running the 3 macros below on many computers with no issue. However, on one computer the Downloads module returns a file not found error (53). It's the same path! Is there some reason I can't think of that this would be happening?
VBA Code:
Sub Copynotice()
Dim wb1 As Workbook, wb2 As Workbook
Application.DisplayAlerts = False
Application.ScreenUpdating = False
Set wb1 = ThisWorkbook
'enter correct path to Downloads folder
Set wb2 = Workbooks.Open("C:\Users\User1\Dropbox\z_sync_do_not_delete\Downloads\DataGridExport.xlsx")
wb2.Sheets("Report1").Range("E2:E120").Copy
wb1.Sheets("Notice").Range("D3").PasteSpecial Paste:=xlPasteValues
wb2.Close
Application.ScreenUpdating = True
Application.DisplayAlerts = True
End Sub
Sub CopyUA()
Dim wb1 As Workbook, wb2 As Workbook
Application.DisplayAlerts = False
Application.ScreenUpdating = False
Set wb1 = ThisWorkbook
'enter correct path to Downloads folder
Set wb2 = Workbooks.Open("C:\Users\User1\Dropbox\z_sync_do_not_delete\Downloads\UnitAvailabilityDetails" & Format(Date, "mm_dd_yyyy") & ".xlsx")
wb2.Sheets("Report1").Range("A10:R300").Copy
wb1.Sheets("Unit Availability").Range("A8").PasteSpecial Paste:=xlPasteValues
wb2.Close
Application.ScreenUpdating = True
Application.DisplayAlerts = True
End Sub
Sub Downloads()
'enter correct path to Downloads folder
Kill "C:\Users\User1\Dropbox\z_sync_do_not_delete\Downloads\*.*"
End Sub