Trying to rename Individual Excel Objects in powerpoint - excel

I create reports in powerpoint where the graphs/tables within the report are created from underlying excel sheets embedded as objects within the powerpoint. When I open these files, each file has the exact same name, which is the name of the powerpoint presentation/file. Is there a way to change the name of each underlying excel object to something unique?
I am doing this so that I can copy data from subscription reports to the powerpoint presentation via python.
Thank you!

The window title is not the file name. Embedded Excel objects are renamed to "Microsoft_Excel_Worksheet.xlsx", "Microsoft_Excel_Worksheet1.xlsx", etc. and are stored in the ppt/embeddings folder in the XML. It's not possible to change this behavior.
However, if you link the Excel rather than embed, the original file name is retained and that file name displays on the top of the Excel window. The path and file name are stored in PowerPoint.

Related

Is there a way you could pull from sharepoint using VBA?

I have coded a macro that takes data from current document (excel) to another document (Excel) from a specific file folder.
Now the company is moving to share point. Is there a way to do that?
Now my VBA code is in an excel that:
Opening different -file path- excel file.
Copying and pasting data from one excel to other excel.
Can I access share point for the specific file path?
I have tried
‘’’ActiveWorkbook.FollowHyperlink Address= “link” ‘’’
But this will not allow me to continue in the macro since it does not open the excel in the app. Rather it opens the direct internet url hyperlink.
Yes you can access Sharepoint with a specific file path. If you sync the relevant Sharepoint folder, it will appear in your File Explorer and you can copy that file path to use in the VBA code.
https://support.microsoft.com/en-us/office/sync-sharepoint-files-and-folders-87a96948-4dd7-43e4-aca1-53f3e18bea9b

Create PDF bookmarks Within Excel Workbook

I'm attempting to build a monthly process that converts an excel file to a PDF with bookmarks for each respective sheet. I'm not seeing a method to successfully create PDF bookmarks from within the Excel workbook. Can this be accomplished without third-party software?
What I've tried:
Using Header 1 for a cell as well as an entire row.
Putting Excel Book Mark within the file using a hyperlink reference.
Adding named range.
OneDrive flow Convert File
Adding a Header.
Reviewed some VBA Ref libraries hoping to find an object.bookmark type approach.
Unfortunately, all attempts have resulted in a PDF file with no bookmarks.
Is there a method to create PDF Bookmarks from Excel? Possibly a VBA ref library that I am unaware of or some front-end trick? Unfortunately, I'm stuck working only with Microsoft tools. Adobe's Excel Add-On does exactly what I'm trying to achieve.

linking table numbers between power point and excel

I am trying to create a presentation file which will contain many tables. These tables though might change. So, I would like to know if there is there a way to link the numbers of a table from an excel file, with the numbers of a table in a powerpoint slide ?
It's easy.
Steps:
Create the table in Excel
Copy the table in Excel
Prepare the slide in PowerPoint
Paste Special the Table on Your PowerPoint slide, using Paste Link
Resize and position the table object
And it's done!
Example:
Here's an example image of Paste Special and Paste Link options:
Hints:
If you update the Excel spreadsheet data, when the PowerPoint file is opened, the new data will be retrieved and displayed. (The system mays asks you to Update the linked data. Always update it with the latest information)
If you move the Excel file, the link will not be able to update as it won’t be able to find the file in the original location. If this happens, just fix the spreadsheet link location.
If you want to edit the data in Excel, you can double click on the table object on the PowerPoint slide and the Excel spreadsheet will open.
If you want to prevent others from changing the data in the Excel spreadsheet, make the Excel file a read-only file. (This will allow them to see the data in Excel when double clicking on the inserted table, but they won’t be able to save any changes to the file)

Convert linked excel into embedded excel

I have a ppt presentation with hundreds of charts that are all linked to the same .xls file. I want to send the presentation to the client and I want him to be able to access the data. However, I do not want him to open the entire xls file when he clicks on edit data.
So what I would like to do is to "convert" the linked charts to charts with an embedded excel that only contains the data concerning the specific chart.
(I am not sure if that's the right way to put it. I feel like the distinction between embedded and linked is not as clear cut anymore as it used to be in previous office versions)
I have found a macro for ppt 2003 that simply copies the old chart and does
Set oSh2 = oSl.Shapes.PasteSpecial(ppPasteOLEObject)(1)
but I think this does now longer work ( I am working with ppt 2013).
Any ideas on how to do this are highly appreciated. Many thanks
If you don't want to give him access to the entire original workbook/worksheet, you'll need to create multiple worksheets, each with just the data you DO want him to be able to get at and then either link or embed those into your PPT file.
If you create the charts using the old MS Graph mini-app (still included, if optionally, with Office) you can link data from an external Excel file into the graph datasheet. I'm almost certain that doing it this way will give others access to the graph datasheet (ie JUST the data used for the graph) but not to the linked source XL file.
I don't see a way of doing this with the new chart engine.

VBA Excel Chart to powerpoint - saving file as multiple outputs

I have a template in excel, and a powerpoint template.
in the powerpoint template I have several charts linked to the excel template.
I want to make a loop that changes something in excel, so that the chart updates, "saveas" for both the excel and powerpoint file, so I have eg. 100 different excel files and 100 different powerpoint files, all build on the templates. I want to be able to manually alter some data in those 100 excelfiles, with the link to powerpoint still intact, so they are updated too if needed.
however, when I open the powerpoint templates, right click on a chart and select "edit data", then the chart is still linked to the excel template, not the saveas version of the excel file?
how do I change the link of a chart in powerpoint, to a different excel filename? the structure in the two excel files are identical.
the chart is created in excel and copy/pasted as "keep source formatting and chain data" (translated from danish)
any help would be greatly appreciated.
I have also tried a solution where the copy/paste is done via vba into an empty powerpoint template, but that is more time consuming, and powerpoint often crashes.
Assuming you have a reference to the shape represented by the linked chart in oSh, this will show you the link:
Debug.Print oSh.LinkFormat.SourceFullName
And this will change it to some other file:
oSh.LinkFormat.SourceFullName = "c:\some\path\yourfile.xls"
Most likely there will also be a !chartname or the like after yourfile.xls ... you'll need to include that.
And save the Excel files first, THEN change the link in the PPT to point to them. If you change the link to point to a non-existent file, PPT won't throw any errors; it'll simply leave the link unchanged.

Resources