Consulting

Results 1 to 2 of 2

Thread: File Path Question

  1. #1
    VBAX Regular
    Joined
    Mar 2009
    Location
    Vancouver
    Posts
    8
    Location

    File Path Question

    I have the following code in an Excel Spreadsheet.

    I need it to work in Powerpoint and I am stumped.

    [vba]Dim MyPath As String
    MyPath = ThisWorkbook.Path
    [/vba]

  2. #2
    VBAX Master
    Joined
    Feb 2007
    Posts
    2,094
    Location
    [VBA]mypath =ActivePresentation.Path[/VBA] should do it
    John Wilson
    Microsoft PowerPoint MVP
    Amazing Free PowerPoint Tutorials
    http://www.pptalchemy.co.uk/powerpoi...tutorials.html

Posting Permissions

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