前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Word文件内嵌入多个PPT/WORD等文件在苹果系统无法打开

Word文件内嵌入多个PPT/WORD等文件在苹果系统无法打开

作者头像
繁华是客
发布2023-03-03 20:04:59
1.2K0
发布2023-03-03 20:04:59
举报

我们遇到了一个Word文件内嵌入了PPT在苹果电脑无法打开,提示错误“ the program used to create this object is powerpoint that program is not installed on your computer”

目录

  • TOC {:toc}

微软答复

Microsoft Answer 微软的意思是好像macOS上不支持这类型嵌入,那么如果文件比较多,我们如何批量将嵌入文件在Windows电脑提取出来呢?

通过VBA实现提取

datanumen

  1. First and foremost, click on “Developer” tab and then the “Visual Basic”. Or just press “Alt+ F11” instead if the “Developer” tab isn’t available.Click “Developer”->Click “Visual Basic”
  2. Next click “Normal” project.
  3. Then click “Insert” tab.
  4. Choose “Module” on the drop-down menu.Click “Normal”->Click “Insert”->Click “Module”
  5. Now double click on the new module to have the coding space.
  6. And paste the bellowing codes there:
代码语言:javascript
复制
Sub ExtractAndSaveEmbeddedFiles()
  Dim objEmbeddedShape As InlineShape
  Dim strShapeType As String, strEmbeddedDocName As String
  Dim objEmbeddedDoc As Object
 
  With ActiveDocument
  For Each objEmbeddedShape In .InlineShapes
 
  '  Find and open the embedded doc.
  strShapeType = objEmbeddedShape.OLEFormat.ClassType
  objEmbeddedShape.OLEFormat.Open
 
  '  Initialization
  Set objEmbeddedDoc = objEmbeddedShape.OLEFormat.Object
 
  '  Save embedded files with names as same as those of icon label. 
  strEmbeddedDocName = objEmbeddedShape.OLEFormat.IconLabel
  objEmbeddedDoc.SaveAs "C:\Users\Public\Documents\New folder\" & strEmbeddedDocName
  objEmbeddedDoc.Close
 
  Set objEmbeddedDoc = Nothing
 
  Next objEmbeddedShape
  End With
End Sub
  1. Finally, click “Run” button or hit “F5”.Paste Codes->Click “Run” All embedded files will be stored under a specific directory with their original names

Note: 修改代码内文件储存位置

In code line “objEmbeddedDoc.SaveAs “C:\Users\Public\Documents\New folder\” & strEmbeddedDocName”, the “C:\Users\Public\Documents\New folder\” is the location for storing files. Remember to replace it with an actual one. 例如改为C:\Users\YourUserName\Downloads\filesexport\

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2021-04-20 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 微软答复
  • 通过VBA实现提取
    • Note: 修改代码内文件储存位置
    领券
    问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档