+ Reply to Thread
Results 1 to 3 of 3

root file path

  1. #1
    Registered User
    Join Date
    02-13-2006
    Posts
    46

    root file path

    Hi,
    I want to create a directory using the macro. I got the code to create a directory. But i want to place the directory in the same path where the file conatining macro is there.
    Suppose the excel file path is in C:\Project\test.xls then the file should also be placed in the path C:\Project.

    Regards,
    Ashish

  2. #2
    NickHK
    Guest

    Re: root file path

    ashishprem,
    Check out ThisWorkbook.Path

    NickHK

    "ashishprem" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Hi,
    > I want to create a directory using the macro. I got the code to create
    > a directory. But i want to place the directory in the same path where
    > the file conatining macro is there.
    > Suppose the excel file path is in C:\Project\test.xls then the file
    > should also be placed in the path C:\Project.
    >
    > Regards,
    > Ashish
    >
    >
    > --
    > ashishprem
    > ------------------------------------------------------------------------
    > ashishprem's Profile:

    http://www.excelforum.com/member.php...o&userid=31485
    > View this thread: http://www.excelforum.com/showthread...hreadid=517219
    >




  3. #3
    Bob Phillips
    Guest

    Re: root file path

    Use

    ThisWorkbook.Path

    --
    HTH

    Bob Phillips

    (remove nothere from email address if mailing direct)

    "ashishprem" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Hi,
    > I want to create a directory using the macro. I got the code to create
    > a directory. But i want to place the directory in the same path where
    > the file conatining macro is there.
    > Suppose the excel file path is in C:\Project\test.xls then the file
    > should also be placed in the path C:\Project.
    >
    > Regards,
    > Ashish
    >
    >
    > --
    > ashishprem
    > ------------------------------------------------------------------------
    > ashishprem's Profile:

    http://www.excelforum.com/member.php...o&userid=31485
    > View this thread: http://www.excelforum.com/showthread...hreadid=517219
    >




+ 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