+ Reply to Thread
Results 1 to 2 of 2

Locating the directory a workbook is stored in

Hybrid View

  1. #1
    Graham Whitehead
    Guest

    Locating the directory a workbook is stored in

    Hi, I was just wondering if it possible to get excel to return the location
    of the workbook that is currently in use. If so does anyone know the VBA
    code to do this? Thanks.



  2. #2
    Bharath Rajamani
    Guest

    RE: Locating the directory a workbook is stored in


    try this -->

    Dim wsh1 as Worksheet
    Dim sPath as String

    Set wsh1 = ActiveWorkbook.Worksheets(1)
    sPath = ActiveWorkbook.Path & "\"


    Rgds,

    "Graham Whitehead" wrote:

    > Hi, I was just wondering if it possible to get excel to return the location
    > of the workbook that is currently in use. If so does anyone know the VBA
    > code to do this? Thanks.
    >
    >
    >


+ Reply to Thread

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