JohanGduToit
Board Regular
- Joined
- Nov 12, 2021
- Messages
- 89
- Office Version
- 365
- 2016
- Platform
- Windows
Morning MrExcel Experts,
We receive an Excel file containing sales information from a customer on a weekly basis which I need to auto re-format and import into our ERP System. The customer's sales file contain links to a datasource residing on the customer's ERP system, so, when we open the file, a whole lot of messages are displayed indicating that these connections can't be establish.
The reformatting of the file will be a call from within MS Access (not an Excel Macro).
The various steps to import the sales file would be as follow:
(A) Programmatically (with VBA code) delete all data connections from the Excel File
(B) Delete all worksheets, except one specified worksheet name "Sales Info Tab".
(C) On the remaining worksheet "Sales Info Tab", select range of cells from cell "A8" to the last row and column containing data.
(D) Copy the selected range from "Sales Info Tab" into a new worksheet named "SALES".
(E) Delete worksheet "Sales Info Tab"
The rest of the formatting I can manage (deleting of unwanted columns, deleting of the last row which contain totals, etc, etc.) - BUT I need help, specifically with points "A", "C" and "D"...
Any help will be hugely appreciated!!!
We receive an Excel file containing sales information from a customer on a weekly basis which I need to auto re-format and import into our ERP System. The customer's sales file contain links to a datasource residing on the customer's ERP system, so, when we open the file, a whole lot of messages are displayed indicating that these connections can't be establish.
The reformatting of the file will be a call from within MS Access (not an Excel Macro).
The various steps to import the sales file would be as follow:
(A) Programmatically (with VBA code) delete all data connections from the Excel File
(B) Delete all worksheets, except one specified worksheet name "Sales Info Tab".
(C) On the remaining worksheet "Sales Info Tab", select range of cells from cell "A8" to the last row and column containing data.
(D) Copy the selected range from "Sales Info Tab" into a new worksheet named "SALES".
(E) Delete worksheet "Sales Info Tab"
The rest of the formatting I can manage (deleting of unwanted columns, deleting of the last row which contain totals, etc, etc.) - BUT I need help, specifically with points "A", "C" and "D"...
Any help will be hugely appreciated!!!