ppSaveAsJPG

T

Tivo'ed

I'm trying to save my title slide as a jpg from my macros that generate
the complete slide deck. I've gone through the motions, and recorded
the macro, and it's very simple, yet when I put it into my application,
instead of creating the file, it creates another subdirectory, and then
puts the jpg into it with a different name

Here's the code....

save_title_as_jpg = next_level + ".jpg"
ActivePresentation.SaveAs FileName:=save_title_as_jpg, FileFormat:=ppSaveAsJPG,
EmbedTrueTypeFonts:=msoFalse

If next_level contains 1953, I'm hoping it will create \1953.jpg.
Instead, it creates \1953\slide0.jpg

At this point in the code, there is only one slide, but it appears like it's getting
ready to save the whole slide deck as jpg's. I only need one, and the Save As...
command has that as an option. How do I select that in macros?

I've tried both fully qualifying the filename ( ie D:\.........\1953.jpg ) and just
the filename ( ie 1953.jpg ).

Thanks in advance for your help.

rod
 
S

Shyam Pillai

You won't have any control over the filenames if you use the presentation
SaveAs method. Use the slide export method to control other factors like
dimensions, image type and filename.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top