Excel for Mac - VBA to Create PowerPoint Presentation

_p_j_b_

New Member
Joined
Oct 4, 2022
Messages
1
Platform
  1. MacOS
Hi all,

I'm a Mac user. I'm trying to create a PPT using VBA in Excel to copy a few tables and charts to different slides.

However, whenever my script reaches PowerPoint commands, such as the one below, PowerPoint or Excel crash completely and close

VBA Code:
Set pptPres = pptApp.Presentations.Add(msoFalse)

Having done some research, it looks like this is a known bug from a few years ago, but I'm wondering if anyone has found a workaround?

In case helpful, I have added the "Microsoft PowerPoint 16.3 Object Library" reference to my project.

Appreciate any help or advice anyone can provide on this -- thanks!
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
When I tested the code, I didn't get a crash, but I did get an "Object Required" message.
 
Upvote 0

Forum statistics

Threads
1,224,813
Messages
6,181,112
Members
453,021
Latest member
Justyna P

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