Update existing power point table with Excel range using VBA - excel

I am a VBA newbie. I am trying to set up a process to quickly update an existing power point template using data from an Excel worksheet.
I was successful in doing it for charts, and for text boxes, but I am struggling with tables.
Let's say I have an existing 2x3 table in ppt and I want to update it with my data from a 2x3 Excel range. Can I do it without for loop?

Related

recreate pivot table based on an existing one using vba

I know I can record a macro in excel to get the vba code when manually creating a pivot table.
But if I already have a manually created pivot table in an excel sheet - is there a way to now get the vba code to recreate an equally looking pivot table in another excel workbook (based on the same kind of but other data)?

VBA excel charts and tables to PowerPoint specific pages

I’ve been trying to do this using my very limited coding knowledge. But how do I copy paste particular charts and tables in my excel sheet onto particular pages in my presentation?
Some need to be copied as pictures but most as chart objects.
Thank you in advance!!

Extracting certain Powerpoint slides based on an Excel table and combine to new presentation

I have a huge PPT presenation (>400 slides) and want to extract certain pages based on an Excel table and create a new, smaller presentation.
I created an Excel table which includes the page numbers as well as the title of each slide in the PPT presentation.
The goal now is, to have a macro that allows me to create a new PPT with all the slides that are mentioned in my (sorted) Excel table.
As I am new with VBA (I am only able to copy/paste code and run it afterwards), I was not able to try anything.
Thanks for your help!

changing first excel worksheet and auto reference graphs

This is what the graphs look like; the slicer is visible on the left and controls visible data.
I have a table that is used to generate many graphs on a separate worksheet and I'm using a slicer to filter what data is displayed on the graphs. All of the graphs are used to analyze every data set. The data sets all have the same format. Is there a way just to add the new data and have the graphs reference the first worksheet so that just changing the order updates the graphs?
Or maybe someone knows a better way to do this? I'm able to copy and paste new data into the first worksheet and the graphs update but the slice is then removed. Thanks in advance for any help or guidance.
The answer is to use macros!
Start by recording the macro and then modify the script to meet your needs accordingly. I was able to table the csv, create a new worksheet, and graph all the data as well as add and resize the slicer. By changing a few variable names this macro can now be applied to all base worksheets.

How to paste from PowerPivot without Data Model

How can I export a PowerPivot table to a new workbook without the attached data model?
Even if I click paste values, Excel makes the file unreasonably large (13MB).
Can I turn this behaviour off?
When you say pasting a Power Pivot table, do you mean copying the table that exists in the data model, that you access through clicking the "Manage" button in the Power Pivot ribbon menu?
Or do you mean copying the values displayed in an Excel pivot table that happens to be backed by a Power Pivot model?
If the former, you can paste the table directly into a new workbook sheet (assuming it has fewer rows than Excel's limit) with no problems and no attachment made to the source workbook's data model.
If the latter, pasting values will bring over only the values, but you have to utilize the right click menu option to do so. If you just CTRL-C CTRL-V the pivot table, and then use the copy-paste context menu to change to values only, then Excel is first creating a copy of the data model in the new workbook to back the pivot table that you are pasting. Then after this action is completed, you are telling it to display values only, but Excel will not delete the data model it's just created to back the pivot table.
I just ran into this problem, it was very easy to resolve. Initially I was trying to paste as values into the destination workbook directly from the source Pivot table which automatically brings the data model across with it.
Simply make a copy of the table by pasting values into the SAME workbook as your data model. Then copy and past the new table into your destination workbook, it will just give you the values and leave the data model behind.

Resources