Hello Excel masters!
I am looking for some help to edit my macros below. This macro simply just imports the xml files at then end of each business day. Those files are saved in that location everyday. Additionaly, each file is also saved with a date extension for historical analysis purposes. For example, file "ALPTOTAL_RC_PORTBPV.xml" is also saved as "ALPTOTAL_RC_PORTBPV_20130404.xml". Each of these files are saved with that specific date format extension. How can I enhance this macro so that I can import any historical files for any specific date? For example, if I want to import all these files with date extension "20130226". Please help as I have been trying for 2 days now without any success at all. Thank you very much in advance for your help.
ActiveWorkbook.XmlMaps("report_output_Pv01").Import URL:= _
"Q:\Summit\Professional\ALPTOTAL_RC_PORTBPV.xml"
ActiveWorkbook.XmlMaps("report_output_Cflash").Import URL:= _
"Q:\Summit\Professional\CFLASH-ALPTOTAL.xml"
ActiveWorkbook.XmlMaps("report_output_MtM_Futures").Import URL:= _
"Q:\Summit\Professional\plupdMtM_futures.xml"
ActiveWorkbook.XmlMaps("report_output_shftAllcpty_BMA").Import URL:= _
"Q:\Summit\Professional\portrepShift_BMA_allcpty.xml"
ActiveWorkbook.XmlMaps("report_output_shftAllcpty_Libor").Import URL:= _
"Q:\Summit\Professional\portrepShift_allcpty.xml"
ActiveWorkbook.XmlMaps("report_output_shftFuts_Libor").Import URL:= _
"Q:\Summit\Professional\portrepShift_allcpty.xml"
ActiveWorkbook.XmlMaps("report_output_shftNonProfes_BMA").Import URL:= _
"Q:\Summit\Professional\portrepShift_BMA_nonprofes.xml"
ActiveWorkbook.XmlMaps("report_output_shftNonProfes_KNXVL").Import URL:= _
"Q:\Summit\Professional\portrepShift_KNXVL.xml"
ActiveWorkbook.XmlMaps("report_output_shftNonProfes_Libor").Import URL:= _
"Q:\Summit\Professional\portrepShift_nonprofes.xml"
ActiveWorkbook.XmlMaps("report_output_shftProfes_BMA").Import URL:= _
"Q:\Summit\Professional\portrepShift_BMA_profes.xml"
ActiveWorkbook.XmlMaps("report_output_shftProfes_Libor").Import URL:= _
"Q:\Summit\Professional\portrepShift_profes.xml"
ActiveWorkbook.XmlMaps("report_output_MtM").Import URL:= _
"Q:\Summit\Professional\portrep_MtM_allcpty.xml"
I am looking for some help to edit my macros below. This macro simply just imports the xml files at then end of each business day. Those files are saved in that location everyday. Additionaly, each file is also saved with a date extension for historical analysis purposes. For example, file "ALPTOTAL_RC_PORTBPV.xml" is also saved as "ALPTOTAL_RC_PORTBPV_20130404.xml". Each of these files are saved with that specific date format extension. How can I enhance this macro so that I can import any historical files for any specific date? For example, if I want to import all these files with date extension "20130226". Please help as I have been trying for 2 days now without any success at all. Thank you very much in advance for your help.
ActiveWorkbook.XmlMaps("report_output_Pv01").Import URL:= _
"Q:\Summit\Professional\ALPTOTAL_RC_PORTBPV.xml"
ActiveWorkbook.XmlMaps("report_output_Cflash").Import URL:= _
"Q:\Summit\Professional\CFLASH-ALPTOTAL.xml"
ActiveWorkbook.XmlMaps("report_output_MtM_Futures").Import URL:= _
"Q:\Summit\Professional\plupdMtM_futures.xml"
ActiveWorkbook.XmlMaps("report_output_shftAllcpty_BMA").Import URL:= _
"Q:\Summit\Professional\portrepShift_BMA_allcpty.xml"
ActiveWorkbook.XmlMaps("report_output_shftAllcpty_Libor").Import URL:= _
"Q:\Summit\Professional\portrepShift_allcpty.xml"
ActiveWorkbook.XmlMaps("report_output_shftFuts_Libor").Import URL:= _
"Q:\Summit\Professional\portrepShift_allcpty.xml"
ActiveWorkbook.XmlMaps("report_output_shftNonProfes_BMA").Import URL:= _
"Q:\Summit\Professional\portrepShift_BMA_nonprofes.xml"
ActiveWorkbook.XmlMaps("report_output_shftNonProfes_KNXVL").Import URL:= _
"Q:\Summit\Professional\portrepShift_KNXVL.xml"
ActiveWorkbook.XmlMaps("report_output_shftNonProfes_Libor").Import URL:= _
"Q:\Summit\Professional\portrepShift_nonprofes.xml"
ActiveWorkbook.XmlMaps("report_output_shftProfes_BMA").Import URL:= _
"Q:\Summit\Professional\portrepShift_BMA_profes.xml"
ActiveWorkbook.XmlMaps("report_output_shftProfes_Libor").Import URL:= _
"Q:\Summit\Professional\portrepShift_profes.xml"
ActiveWorkbook.XmlMaps("report_output_MtM").Import URL:= _
"Q:\Summit\Professional\portrep_MtM_allcpty.xml"