View Single Post
 
Old 06-11-2011, 05:52 PM
vbapptnew123 vbapptnew123 is offline Windows 7 64bit Office 2007
Novice
 
Join Date: Jun 2011
Posts: 2
vbapptnew123 is on a distinguished road
Default Help with reducing pptm file size

I wrote a vba macro code to copy paste multiple xlsm data sheets and charts into an existing powerpoint file, with the slides being cleared so as not to overwrite the existing slides. The powerpoint file is then saved. There are about 80 slides that need to be copied out of 140 slides.

The original powerpoint file is in .pptx format. The macro saves the file as .pptm format.

I took some piece of the code from another code and improvised upon it. I am not sure why the file is originally saved as a .pptm but could this be causing a large file size? However the copy paste vba code works perfectly fine except that we cannot send the huge file (25MB) as an e-mail attachment. The original file size is 4MB. All we are doing is deleting some slides and copy / pasting the ones from the ,xlsm file. Is there a way we can reduce the file size?

Should I have used the .pptx instead?


Sub Copy2PowerPoint2()
Application.ScreenUpdating = False
Dim slidenum As Integer
Dim PPTM As PowerPoint.Application
Set PPTM = New PowerPoint.Application
PPTM.Visible = True
PPTM.Presentations.Open Filename:="F:\Focus\Myfolder\Copy Paste Project\OnePagers_Templates\OriginationsMonitorPac kage.pptm"
Reply With Quote