版权所有:内蒙古大学图书馆 技术提供:维普资讯• 智图
内蒙古自治区呼和浩特市赛罕区大学西街235号 邮编: 010021
作者机构:张家口医学院计算机教研室075000 北方机电学校教学科
出 版 物:《微计算机应用》 (Microcomputer Applications)
年 卷 期:2001年第22卷第5期
页 面:292-292页
学科分类:08[工学] 0835[工学-软件工程] 081202[工学-计算机软件与理论] 0812[工学-计算机科学与技术(可授工学、理学学位)]
主 题:VBA 程序设计 PowerPoint Excel 图表
摘 要:VBA是插入到Office应用程序中的一个Windows构件,利用VBA编程可实现Office组件内对象的互相插入和调用.下面是用VBA编写的三个用于PowerPoint的过程,可将用户选择的Excel图表文件作为一个嵌入的对象插入PowerPoint幻灯片中.Sub insertExcelCharttoPowerPoint ODim oPowerPoint As New PowerPoint. Application Dim oPres As New PowerPoint. Presentation Dim oSlide As New PowerPoint. Slide Dim sgBottom As Sinele Dim Excelobj As Shape Set oPres == oPowerPoint. Presentation. Add ‘增加一个演示文稿Set oSlide = OPre. Slide. Add ( 1, ppLayoutTitleOnly)‘增加一个幻灯片With. oSlide. Shapes. Placeholders (1)