+ Reply to Thread
Results 1 to 2 of 2

VBA macro for multiple sheets in a workbook

  1. #1
    Forum Contributor
    Join Date
    10-25-2012
    Location
    Honolulu, Hawaii
    MS-Off Ver
    Excel 2013
    Posts
    128

    VBA macro for multiple sheets in a workbook

    Hello,

    I am stumped ; I have tried for hours to get this to work correctly;

    1. I am trying to access a folder with 41(fourty-one) individual .csv files within a folder. Every *.csv file has its own name.

    2. I would like a macro to extract the *.csv files from the folder and make separate worhsheets within a workbook with one click instead of trying to add (41) them individually

    3. This is what I have so far:

    Please Login or Register  to view this content.
    4. It does not work correctly, it only pulls one file from a list of 41.

    Aloha
    Last edited by rmccain; 10-03-2015 at 03:54 PM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: VBA macro for multiple sheets in a workbook

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Vba/macro to combine multiple workbooks with multiple sheets into one workbook
    By ReshayM in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 09-03-2015, 01:00 PM
  2. Macro - Refresh Multiple Protected Pivtos (on Multiple Sheets) Upon Workbook Opening
    By luke.walker in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-26-2014, 05:18 PM
  3. [SOLVED] Macro to copy cells from multiple sheets in workbook to multiple sheets in other workbook
    By KeithMale in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-13-2013, 05:37 PM
  4. [SOLVED] Macro error when ran on multiple sheets on workbook (even though macro works)
    By steven_e in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-02-2012, 06:09 PM
  5. Replies: 3
    Last Post: 08-01-2012, 08:00 AM
  6. [SOLVED] Trying to run a specific macro on multiple sheets within a workbook
    By sophist in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-18-2012, 05:57 AM
  7. Excel Macro using multiple sheets in a workbook
    By virvin69 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-16-2011, 09:24 AM

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