Results 1 to 5 of 5

Excel 2007 : VBA for finding the filepath of the current open workbook

Threaded View

  1. #1
    Registered User
    Join Date
    07-16-2010
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2007
    Posts
    8

    VBA for finding the filepath of the current open workbook

    I'm trying to write code that will look at the filepath of the workbook I am currently in and enters it into a given cell (say A1) for reference in the following code:


    ActiveWorkbook.SaveAs Filename:= _
    "M:\!00-ME PROJECTS\Procurement Support\Supplier Audits\Triumph " & WorkbookName & ".xls "
    In other words, the file path you see above, I need to generate that automatically so that no matter what file I am in the Macro can be run.... hope this makes sense!

    Thanks guys!
    Last edited by jrodlc08; 07-16-2010 at 02:04 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1