ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] ¦p¦ó¦bExcel¥¨¶°¤¤Ãö³¬PPT?

[µo°Ý] ¦p¦ó¦bExcel¥¨¶°¤¤Ãö³¬PPT?

³z¹L¦U¦ì°ª¤âªº¸gÅç¡A§Ú¤w¸gª¾¹D¦p¦ó¦bExcel¥¨¶°¤¤¶}±ÒPPT¡A¦p¤U¡G
Sub openppt()
    Set file = GetObject("C:\file.ppt")
    file.Application.Visible = True
End Sub

½Ð°Ý¡A¦pªG­n¥ÎExcel¥¨¶°¥hÃö³¬¶}±Ò¤¤ªºPPT¡A¦³¿ìªk¶Ü¡H

¦^´_ 1# ocean5757
  1. Sub Test()
  2.     Dim oApp As Object: Set oApp = CreateObject("PowerPoint.Application")
  3.     Dim file As Object
  4.    
  5.     'open
  6.     Set file = oApp.Presentations.Open("C:\file.ppt")
  7.    
  8.     'close
  9.     If oApp.Presentations.Count > 1 Then
  10.         file.Close  'close presentation
  11.     Else
  12.         oApp.Quit   'close power point application
  13.     End If   
  14. End Sub
½Æ»s¥N½X
ªí¹F¤£²M¡BÃD·N¤£©ú½T¡B¨SªþÀɮ׮榡¡B¨S¦³°Q½×°ÝÃDªººA«×~~~~~~¥H¤W·R²ö¯à§U¡C

TOP

¦^´_ 2# stillfish00

stillfish00 ¤j¤j¡AÁÂÁ±zªº¤À¨É.
¤£¹L§Ú¥Î F8 ³v¦æ°õ¦æ, run ¨ì³o¦æ¡GSet file = oApp.Presentations.Open("C:\file.ppt")
¥X²{¿ù»~°T®§¡G'Open¤èªk'('Presentations'ª«¥ó)¥¢±Ñ

TOP

¦^´_ 3# ocean5757
¤£ª¾¹D¡A¦b§Ú¹q¸£¬O¥i¥H¥¿±`¶}±ÒÃö³¬ªº¡C
¤]³\§Aªº powerpoint ÀÉ®×·l·´?
­«·s·s«Ø¤@­Ó¨Ó¸Õ¸Õ?
ªí¹F¤£²M¡BÃD·N¤£©ú½T¡B¨SªþÀɮ׮榡¡B¨S¦³°Q½×°ÝÃDªººA«×~~~~~~¥H¤W·R²ö¯à§U¡C

TOP

        ÀR«ä¦Û¦b : ¤@­Ó¤H¤£©È¿ù¡A´N©È¤£§ï¹L¡A§ï¹L¨Ã¤£Ãø¡C
ªð¦^¦Cªí ¤W¤@¥DÃD