BuJay
Board Regular
- Joined
- Jun 24, 2020
- Messages
- 75
- Office Version
- 365
- 2019
- 2016
- 2013
- Platform
- Windows
I know this is a common problem but I have been reading countless solutions that are close but not exactly what I need.
I have a powerpoint deck with hundreds of chart objects linked to an excel spreadsheet. A typical issue with linked objects is that they can't be updated if the excel filename changes.
So, that is what I am looking for here....
Assume I have a PowerPoint file named PPT_v1.0.1.pptx and it has hundreds of charts linked to a common excel named EXCEL.v1.0.1.xlsm.
Is there a way to create an Excel VBA script that opens the PPT and loops through every linked object and changes the source string to reference EXCEL.v1.0.2.xlsm instead of EXCEL.v1.0.1.xlsm?
The exact strings are here - note that the v1.0.1 changes to v1.0.2 and that is the only change.
PowerPoint: \\corp\sites\RIB1001\HLSCreditRisk\0_Property_Secured_Credit_MIS\0_Master_Reports\heloc\aqr\Perf_Prep_Work\043023\051623\ppt_v1.0.1.pptx
Old Excel: \\corp\sites\RIB1001\HLSCreditRisk\0_Property_Secured_Credit_MIS\0_Master_Reports\heloc\aqr\Perf_Prep_Work\043023\051623\excel_test_v1.0.1.xlsm
New Excel: \\corp\sites\RIB1001\HLSCreditRisk\0_Property_Secured_Credit_MIS\0_Master_Reports\heloc\aqr\Perf_Prep_Work\043023\051623\excel_test_v1.0.2.xlsm
I have a powerpoint deck with hundreds of chart objects linked to an excel spreadsheet. A typical issue with linked objects is that they can't be updated if the excel filename changes.
So, that is what I am looking for here....
Assume I have a PowerPoint file named PPT_v1.0.1.pptx and it has hundreds of charts linked to a common excel named EXCEL.v1.0.1.xlsm.
Is there a way to create an Excel VBA script that opens the PPT and loops through every linked object and changes the source string to reference EXCEL.v1.0.2.xlsm instead of EXCEL.v1.0.1.xlsm?
The exact strings are here - note that the v1.0.1 changes to v1.0.2 and that is the only change.
PowerPoint: \\corp\sites\RIB1001\HLSCreditRisk\0_Property_Secured_Credit_MIS\0_Master_Reports\heloc\aqr\Perf_Prep_Work\043023\051623\ppt_v1.0.1.pptx
Old Excel: \\corp\sites\RIB1001\HLSCreditRisk\0_Property_Secured_Credit_MIS\0_Master_Reports\heloc\aqr\Perf_Prep_Work\043023\051623\excel_test_v1.0.1.xlsm
New Excel: \\corp\sites\RIB1001\HLSCreditRisk\0_Property_Secured_Credit_MIS\0_Master_Reports\heloc\aqr\Perf_Prep_Work\043023\051623\excel_test_v1.0.2.xlsm