benjamin132
New Member
- Joined
- Jun 8, 2022
- Messages
- 21
- Platform
- Windows
Hello guys, i need some help.
I have to open an Excel file with a macro thanks to a path.
I explained :
I have, store in a variable, this :
[LLD] -[SD2022_LP34.3_WDM_P1_CTA_BRO SAVOIE_EXTENSION_OMEGA]
[LLD] - [NOE]- [SD2022_WDM_P0_NOE_Raccordement-Belfort-RIP-Altitude-Doubs-Dijon_CREATION_RIP]
[LLD]-[SD2021 FO Eqts CTA raccordement MO Chambéry_Omega]
I have to open the Excel using the information contained in this str.
If we take the exemple of the first str : [LLD] -[SD2022_LP34.3_WDM_P1_CTA_BRO SAVOIE_EXTENSION_OMEGA]
First of all, need to select the root of the path, it is always : \PARTAGES\1501-1550\M01514\PUBLIC\1 - SP équipementier
then need to select the region that can be only : CTA, MED, NOE, SWT, WSF,WST,IDF and in the str only one of this list can be inside. Here it is CTA.
then need to select the years here it is 2022:
And select the folder thanks to the end of the str :
Finaly open the only one Excel inside the folder so perhaps open "*.xlsx" should works
If you need more informations, I can give more. Thank you :D
I have to open an Excel file with a macro thanks to a path.
I explained :
I have, store in a variable, this :
[LLD] -[SD2022_LP34.3_WDM_P1_CTA_BRO SAVOIE_EXTENSION_OMEGA]
[LLD] - [NOE]- [SD2022_WDM_P0_NOE_Raccordement-Belfort-RIP-Altitude-Doubs-Dijon_CREATION_RIP]
[LLD]-[SD2021 FO Eqts CTA raccordement MO Chambéry_Omega]
I have to open the Excel using the information contained in this str.
If we take the exemple of the first str : [LLD] -[SD2022_LP34.3_WDM_P1_CTA_BRO SAVOIE_EXTENSION_OMEGA]
First of all, need to select the root of the path, it is always : \PARTAGES\1501-1550\M01514\PUBLIC\1 - SP équipementier
then need to select the region that can be only : CTA, MED, NOE, SWT, WSF,WST,IDF and in the str only one of this list can be inside. Here it is CTA.
then need to select the years here it is 2022:
And select the folder thanks to the end of the str :
Finaly open the only one Excel inside the folder so perhaps open "*.xlsx" should works
If you need more informations, I can give more. Thank you :D