Actually change link source strings on Linked Objects in PowerPoint using Excel VBA

BuJay

Board Regular
Joined
Jun 24, 2020
Messages
73
Office Version
  1. 365
  2. 2019
  3. 2016
  4. 2013
Platform
  1. 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
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Wondering if this actually needs to be done in PowerPoint VBA - which is ok as well.
 
Upvote 0

Forum statistics

Threads
1,214,642
Messages
6,120,700
Members
448,979
Latest member
DET4492

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top