Import data from powerpoint table

Viren

New Member
Joined
Jun 21, 2011
Messages
1
Hi

I'd like to write VBA code that would enable me to import from powerpoint table to excel. I've tried to record a macro to help me get started but to no avail.

Please help.

Thanks
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Welcome to the Forum,

Which version of MS Office are you using? IF 2007 or higher you can't record a macro in PowerPoint (bad mistake from Microsoft). Do you know which slide the table is on?

Here is some code to open PowerPoint from Excel. I am using the Object method to save setting the Reference to PowerPoint is Excel.

If you can supply the extra information then we should be able to help.

<font face=Courier New><SPAN style="color:#00007F">Sub</SPAN> power1()<br><SPAN style="color:#00007F">Dim</SPAN> ppt <SPAN style="color:#00007F">As</SPAN> <SPAN style="color:#00007F">Object</SPAN><br><SPAN style="color:#00007F">Set</SPAN> ppt = CreateObject("PowerPoint.Application")<br><SPAN style="color:#00007F">With</SPAN> ppt<br>    .Visible = <SPAN style="color:#00007F">True</SPAN><br>    .presentations.Open "Path to .ppt"<br>    <br><SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">With</SPAN><br><br><br><SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">Sub</SPAN></FONT>
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,277
Members
452,902
Latest member
Knuddeluff

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