Thank you for your prompt response and instructions. I am unable to attach the file at the moment, but I have the code used
available:
#Please note xxxx are used to comment out personal information.
#First Code:
Private Sub Workbook_Open()
Application.OnTime (Now + TimeValue("0:00:10")), "xxxxSnap"
' Application.Quit
End Sub
#Second Code:
Sub xxxxSnap()
Dim sName, sTime, sToday
Dim dToday, dNow As Date
dToday = Date
dNow = Time
sToday = Format(dToday, "yyyymmdd")
sTime = Format(dNow, "hh")
sPriceType = "xxxxxx"
sPath = "W:\xxxxxxxx xxxxxxx\9. xxxxxxx\xxxxxx - xxxxxx\xxxxxxxxx\xxxxxx\"
stbcPath = "Drive Letter:\xxxxxxx\xxxxxxxxx xxxxx\xxxxx\xxxxxxx\xxxxxx\xxxxxx\xxxxx\xxxxxx\xxxxxx\xxxxxxx\"
sName = sPath & sPriceType & sToday & "-" & sTime & ".csv"
stbcName = stbcPath & "xxxxx.csv"
ActiveWorkbook.SaveAs Filename:=sName, FileFormat:=xlCSV
ActiveWorkbook.SaveAs Filename:=stbcName, FileFormat:=xlCSV
Application.DisplayAlerts = False
Application.Quit
End Sub
Bookmarks