+ Reply to Thread
Results 1 to 4 of 4

Macros - Coding Macros - Windows Folder Listings

  1. #1
    Registered User
    Join Date
    04-08-2013
    Location
    New York, NY
    MS-Off Ver
    Excel 2007
    Posts
    2

    Macros - Coding Macros - Windows Folder Listings

    I apologize but I am not a VBA or Excel Guru.

    I want to be able to use MS Excel 2007 Macro tool to create a list of yellow Folders on a certain hard drive (entire drive such as C:\ or E:\ or X:\ etc.) using the program below (see link), but I am stuck because of my cluelessness compared to you members who are Gods in my eyes for this stuff.

    Here is the link below, but I am not sure where I "copy and paste" this code below to get Excel 2007 to work.

    Can someone tell me where I can copy and paste this code in Excel and and also more importantly, besides this line of code here (which is obvious to
    me which part of the code is where the developer is telling me that I need to customize the code to specify which directory to send the "output"

    'Parent Directory - Change this to whichever directory you want to use
    ListFoldersAndInfo "C:\Documents and Settings\Administrator\My Documents", startRange


    Is there any other part of the program besides the above obvious, where I need to "adjust/customize" to specify my personal directory of the location of the folders or where I
    want the output?


    Here is the program and link where it came from:

    http://www.excelforum.com/excel-prog...-in-excel.html

    WHERE DO I CUT AND PASTE THIS CODE BELOW IN MS EXCEL 2007???

    Please Login or Register  to view this content.
    PS: I know that I must follow these instructions to enable Macro's function/tab in Excel in order to work with the Macro functions in Excel:

    http://www.excelforum.com/excel-prog...00#post3190300
    Last edited by theprofessionalnyc; 04-09-2013 at 02:08 PM. Reason: Requested by Forum Administrator

  2. #2
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: Need Help with Macro (see link)

    Hi, try the following

    1. Right click on a worksheet tab
    2. Select view code
    ............View will now switch to the VB editor.
    3. Find the VBA project which has the same name as you excel file in the project explorer to the left
    4. Right click on it
    5. Select "Insert Module"
    6. Double click on the module
    7. Paste your code into it.
    Elegant Simplicity............. Not Always

  3. #3
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Need Help with Macro (see link)

    Welcome to the forum.

    I have added code tags to your post. As per forum rule 3, you need to use them whenever you put any code in your post. Please add them in future. In order to put code tags, either type [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] at the end of it, OR you can highlight your code and click the # icon at the top of your post window.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  4. #4
    Registered User
    Join Date
    04-08-2013
    Location
    New York, NY
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Need Help with Macro (see link)

    Thanks AndyLitch - I've done that. See attached screen shot

    Can you tell me what to do next?

+ 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