Hello All,
This is what I have so far and it works, I tested it.
Could someone please help tweak this a bit so that the file does not get overwritten each time the export happens.
Is there a way to have the code create a new file when run instead of having the export go into an existing file and have it automatically named with the date it is run. The name could be DTS Export with the date it runs.
I need to run this each week and I need to have the file renamed each week with the date of when it runs o that it does not get overwritten. Any help would be greatly appreciated.
Function exportDtsData()
DoCmd.TransferSpreadsheet acExport, , "Dashboard 1 - Exception Status", "\\corp\dfs\Retail_Shared\GA016\F3A_02\RETAIL_SHARED\AQCP\WBCS Admin\WBCS Analytics\REPORTING\Weekly\DTS\DTS Dashboard Master.xls", False, "Dashboard 1 - Exception Status"
DoCmd.TransferSpreadsheet acExport, , "Dashboard 2 - LOB Status", "\\corp\dfs\Retail_Shared\GA016\F3A_02\RETAIL_SHARED\AQCP\WBCS Admin\WBCS Analytics\REPORTING\Weekly\DTS\DTS Dashboard Master.xls", False, "Dashboard 2 - LOB Status"
DoCmd.TransferSpreadsheet acExport, , "Dashboard 3 - Region Status", "\\corp\dfs\Retail_Shared\GA016\F3A_02\RETAIL_SHARED\AQCP\WBCS Admin\WBCS Analytics\REPORTING\Weekly\DTS\DTS Dashboard Master.xls", False, "Dashboard 3 - Region Status"
DoCmd.TransferSpreadsheet acExport, , "Data with Officer Name 85 and 86s only", "\\corp\dfs\Retail_Shared\GA016\F3A_02\RETAIL_SHARED\AQCP\WBCS Admin\WBCS Analytics\REPORTING\Weekly\DTS\DTS Dashboard Master.xls", False, "Data with Officer Name 85 and 86s only"
DoCmd.TransferSpreadsheet acExport, , "Status - Do Not Call (88)", "\\corp\dfs\Retail_Shared\GA016\F3A_02\RETAIL_SHARED\AQCP\WBCS Admin\WBCS Analytics\REPORTING\Weekly\DTS\DTS Dashboard Master.xls", False, "Status - Do Not Call (88)"
DoCmd.TransferSpreadsheet acExport, , "Document - LD0102", "\\corp\dfs\Retail_Shared\GA016\F3A_02\RETAIL_SHARED\AQCP\WBCS Admin\WBCS Analytics\REPORTING\Weekly\DTS\DTS Dashboard Master.xls", False, "Document - LD0102"
DoCmd.TransferSpreadsheet acExport, , "Perfected Documents", "\\corp\dfs\Retail_Shared\GA016\F3A_02\RETAIL_SHARED\AQCP\WBCS Admin\WBCS Analytics\REPORTING\Weekly\DTS\DTS Dashboard Master.xls", False, "Perfected Documents"
DoCmd.TransferSpreadsheet acExport, , "Data with Officer Name 87s only", "\\corp\dfs\Retail_Shared\GA016\F3A_02\RETAIL_SHARED\AQCP\WBCS Admin\WBCS Analytics\REPORTING\Weekly\DTS\DTS Dashboard Master.xls", False, "Data with Officer Name 87s only"
DoCmd.TransferSpreadsheet acExport, , "Data with Officer Name no 87", "\\corp\dfs\Retail_Shared\GA016\F3A_02\RETAIL_SHARED\AQCP\WBCS Admin\WBCS Analytics\REPORTING\Weekly\DTS\DTS Dashboard Master.xls", False, "Data with Officer Name no 87"
End Function
This is what I have so far and it works, I tested it.
Could someone please help tweak this a bit so that the file does not get overwritten each time the export happens.
Is there a way to have the code create a new file when run instead of having the export go into an existing file and have it automatically named with the date it is run. The name could be DTS Export with the date it runs.
I need to run this each week and I need to have the file renamed each week with the date of when it runs o that it does not get overwritten. Any help would be greatly appreciated.
Function exportDtsData()
DoCmd.TransferSpreadsheet acExport, , "Dashboard 1 - Exception Status", "\\corp\dfs\Retail_Shared\GA016\F3A_02\RETAIL_SHARED\AQCP\WBCS Admin\WBCS Analytics\REPORTING\Weekly\DTS\DTS Dashboard Master.xls", False, "Dashboard 1 - Exception Status"
DoCmd.TransferSpreadsheet acExport, , "Dashboard 2 - LOB Status", "\\corp\dfs\Retail_Shared\GA016\F3A_02\RETAIL_SHARED\AQCP\WBCS Admin\WBCS Analytics\REPORTING\Weekly\DTS\DTS Dashboard Master.xls", False, "Dashboard 2 - LOB Status"
DoCmd.TransferSpreadsheet acExport, , "Dashboard 3 - Region Status", "\\corp\dfs\Retail_Shared\GA016\F3A_02\RETAIL_SHARED\AQCP\WBCS Admin\WBCS Analytics\REPORTING\Weekly\DTS\DTS Dashboard Master.xls", False, "Dashboard 3 - Region Status"
DoCmd.TransferSpreadsheet acExport, , "Data with Officer Name 85 and 86s only", "\\corp\dfs\Retail_Shared\GA016\F3A_02\RETAIL_SHARED\AQCP\WBCS Admin\WBCS Analytics\REPORTING\Weekly\DTS\DTS Dashboard Master.xls", False, "Data with Officer Name 85 and 86s only"
DoCmd.TransferSpreadsheet acExport, , "Status - Do Not Call (88)", "\\corp\dfs\Retail_Shared\GA016\F3A_02\RETAIL_SHARED\AQCP\WBCS Admin\WBCS Analytics\REPORTING\Weekly\DTS\DTS Dashboard Master.xls", False, "Status - Do Not Call (88)"
DoCmd.TransferSpreadsheet acExport, , "Document - LD0102", "\\corp\dfs\Retail_Shared\GA016\F3A_02\RETAIL_SHARED\AQCP\WBCS Admin\WBCS Analytics\REPORTING\Weekly\DTS\DTS Dashboard Master.xls", False, "Document - LD0102"
DoCmd.TransferSpreadsheet acExport, , "Perfected Documents", "\\corp\dfs\Retail_Shared\GA016\F3A_02\RETAIL_SHARED\AQCP\WBCS Admin\WBCS Analytics\REPORTING\Weekly\DTS\DTS Dashboard Master.xls", False, "Perfected Documents"
DoCmd.TransferSpreadsheet acExport, , "Data with Officer Name 87s only", "\\corp\dfs\Retail_Shared\GA016\F3A_02\RETAIL_SHARED\AQCP\WBCS Admin\WBCS Analytics\REPORTING\Weekly\DTS\DTS Dashboard Master.xls", False, "Data with Officer Name 87s only"
DoCmd.TransferSpreadsheet acExport, , "Data with Officer Name no 87", "\\corp\dfs\Retail_Shared\GA016\F3A_02\RETAIL_SHARED\AQCP\WBCS Admin\WBCS Analytics\REPORTING\Weekly\DTS\DTS Dashboard Master.xls", False, "Data with Officer Name no 87"
End Function