Some PowerPoint VBA Tips

原创 2007年09月27日 15:18:00
1) To insert slides from another presentation file, use InsertFromFile Method:
Inserts slides from a file into a presentation, at the specified location. Returns an integer that represents the number of slides inserted.
expression.InsertFromFile(FileName, Index, SlideStart, SlideEnd)
expression - Required. An expression that returns a Slides collection.
FileName - Required String. The name of the file that contains the slides you want to insert.
Index - Required Long. The index number of the Slide object in the specified Slides collection you want to insert the new slides after.
SlideStart - Optional Long. The index number of the first Slide object in the Slides collection in the file denoted by FileName.
SlideEnd - Optional Long. The index number of the last Slide object in the Slides collection in the file denoted by FileName.
Example
This example inserts slides three through six from C:/Ppt/Sales.ppt after slide two in the active presentation.
ActivePresentation.Slides.InsertFromFile _
    "c:/ppt/sales.ppt", 2, 3, 6
 
2) To get snapshot of a slide, use ActivePresentation.SaveAs FileName:="c:/filename.png", FileFormat:=ppSaveAsPNG, EmbedTrueTypeFonts:=msoFalse
 
3) Some other useful VBA code snippets on web:
 
版权声明:本文为博主原创文章,未经博主允许不得转载。

相关文章推荐

Yii框架学习(二)–some tips

1.对于资源(如css或者img)我们可以对路径定义为常量: 在config中建立一个constants.php文件,写上如 define(‘SITE_URL’,'http://localhost...

Some tips for learning English step by step

Some tips for learning English step by step

Python 数据处理的 Some tips --- 索引

《利用Python进行数据分析》笔记我个人觉得有些东西是需要用到的时候查一下就行的,比如矩阵求逆,矩阵转置,但是一些更加常用的东西还是要扫一遍书的,记录下来一些印象深刻的点,以后查着方便。蛋疼,其实就...

ios some tips

blockskit的block中持有self时是强引用,会导致self不释放。masonry的block中的self不会导致self不释放textfield限制字符长度时对拼音不做处理的方法:-(vo...

Some Tips/Tricks in Machine Learning

这篇不算是基础系列,只是在网上看见别人写的,感觉很不错,翻译的别人的英文 原文链接: 原文数据集扩充对于深度的NN来说,数据集过小会很容易造成Overfitting,扩充数据集的方法通常有以下几种:...

Some tips about Control Flow in Python

1. You can use tuple unpacking to make some for loops cleaner: Bad: somelist = [(1, 2), (3,...

CENTOS some tips

安装CentOS 51.       download VM Ware player and CentOS ISO (7 ISO files)2.       install...

Some Tips for CSQA exam

I will be covering some of the points that were helpful to me in clearing my exam in 30 days prepara...

some tips for objective-C

below tips comes from http://blog.csdn.net/kmyhy/article/details/5716755 1.使用class获得meta class N...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:深度学习:神经网络中的前向传播和反向传播算法推导
举报原因:
原因补充:

(最多只允许输入30个字)