+ Reply to Thread
Results 1 to 2 of 2

Directory Structure in a Macro

  1. #1
    Registered User
    Join Date
    04-26-2007
    Posts
    94

    Directory Structure in a Macro

    Hi Guys,

    I'm trying to run a macro that looks like this :

    --------------------------------------------------------------------

    Please Login or Register  to view this content.
    -----------------------------------------------------------------------

    The thing I want to edit is with regards to this line:

    .LookIn = "C:\Documents and Settings\dhunter25\My Documents\Tests\GMS"



    Rather than having a full directory path, i want to look in a folder called
    GMS. This folder will be a subdirectory of the folder that this main macro
    and workbook are stored in.

    Can anyone tell me how to do this?



    [If anyone wants to know, the macro will edit a folder full of excel
    workbooks all at once by running a macro in another workbook]

    Thanks!
    Dave

    DominicB : Code tags added
    Last edited by dominicb; 06-20-2007 at 11:40 AM.

  2. #2
    Forum Contributor WinteE's Avatar
    Join Date
    04-07-2007
    Location
    Netherlands
    Posts
    544
    Hi Dominic,

    try this,

    Please Login or Register  to view this content.
    Succes,

    Erik
    Just keep it simple !


    http://www.excelguide.eu
    In English as well as in Dutch

+ 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