Consulting

Results 1 to 2 of 2

Thread: Opening PPT file from a server

  1. #1
    VBAX Newbie
    Joined
    Nov 2023
    Posts
    5
    Location

    Opening PPT file from a server

    I am a newbie to vba however I have created the following to open a ppt template saved on a server

    Sub OpenPPTFromServer() ' Replace "\\Server\Path\to\Your\File.pptx" with the actual server path
    Dim serverFilePath As String
    serverFilePath = "\\Server\Path\to\Your\File.pptx"
    ' Open the file
    Presentations.Open serverFilePath
    End Sub
    which works, however it opens the .potx rather than opening a new file from template, can someone please help with what to add to this?

    thanks in advance

  2. #2
    VBAX Newbie
    Joined
    Nov 2023
    Posts
    5
    Location
    Solved with this code;

    Presentations.Open FileName:=“FILEPATH”, Untitled:=msotrue

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •