PaigeWeber
New Member
- Joined
- Aug 7, 2017
- Messages
- 3
Hello! New to this forum.
I am looking for a code in VBA to automatically trim headers from 12 different Excel files that I receive once a week by Outlook.
I already have code written in Outlook to automatically download these Excel files from Outlook onto a network server.. I need the macro to trim the headers once downloaded into the folder so they can be imported into Access.
When attempting to import the files into Access, I get an error because a few of the headers have spaces in front of them
Here are the names of the files:
PACE007A_Rgn_NE_LTE_NSB.xlsx
PACE007A_Rgn_SW_LTE_CA.xlsx
PACE007A_Rgn_WE_UMTS_CA.xlsx
PACE007A_Rgn_WE_Mods2.xlsx
PACE007A_Rgn_WE_LTE_CA.xlsx
PACE007A_Rgn_WE_LTE_NSB.xlsx
PACE007A_Rgn_SW_UMTS_NSB.xlsx
PACE007A_Rgn_SW_Mods2.xlsx
PACE007A_Rgn_SW_UMTS_CA.xlsx
PACE007A_Rgn_SW_Mods.xlsx
PACE007A_Rgn_WE_Mods.xlsx
PACE007A_Rgn_WE_UMTS_NSB.xlsx
I am looking for a code in VBA to automatically trim headers from 12 different Excel files that I receive once a week by Outlook.
I already have code written in Outlook to automatically download these Excel files from Outlook onto a network server.. I need the macro to trim the headers once downloaded into the folder so they can be imported into Access.
When attempting to import the files into Access, I get an error because a few of the headers have spaces in front of them
Here are the names of the files:
PACE007A_Rgn_NE_LTE_NSB.xlsx
PACE007A_Rgn_SW_LTE_CA.xlsx
PACE007A_Rgn_WE_UMTS_CA.xlsx
PACE007A_Rgn_WE_Mods2.xlsx
PACE007A_Rgn_WE_LTE_CA.xlsx
PACE007A_Rgn_WE_LTE_NSB.xlsx
PACE007A_Rgn_SW_UMTS_NSB.xlsx
PACE007A_Rgn_SW_Mods2.xlsx
PACE007A_Rgn_SW_UMTS_CA.xlsx
PACE007A_Rgn_SW_Mods.xlsx
PACE007A_Rgn_WE_Mods.xlsx
PACE007A_Rgn_WE_UMTS_NSB.xlsx