+ Reply to Thread
Results 1 to 2 of 2

Importing multiple .csv files into one new excel file - problem with sheet names

  1. #1
    Registered User
    Join Date
    05-20-2016
    Location
    USA
    MS-Off Ver
    2007
    Posts
    5

    Importing multiple .csv files into one new excel file - problem with sheet names

    Hello all,

    When I run the VBA script to import all .csv sheets from a directory into a new excel file as their own individual sheets, I need the sheet names to stay their default names (sheet1, sheet2, etc..). When I import them, the sheets have the files names. Is there any way to adjust this code so all sheets are imported as sheet1, sheet2, sheet3, or so they're imported as something standardized (customer1, customer2, customer3, etc...)?


    Please Login or Register  to view this content.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Importing multiple .csv files into one new excel file - problem with sheet names

    Hi,

    Untested in the absence of your workbook but add a counter and use the counter to rename the sheets. i.e.

    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ 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. [SOLVED] Help Importing Multiple Text files into one Excel Sheet
    By turpin_1980 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-27-2013, 08:42 AM
  2. problem in importing multiple text files to excel at a time using macro
    By ramesh0123 in forum Excel Programming / VBA / Macros
    Replies: 26
    Last Post: 03-08-2013, 11:55 PM
  3. [SOLVED] Importing multiple .csv files into one Excel file.
    By cody.starr in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-05-2013, 03:36 AM
  4. [SOLVED] Importing multiple .csv files into one Excel file.
    By cody.starr in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-04-2013, 06:14 PM
  5. Replies: 0
    Last Post: 11-27-2012, 01:43 PM
  6. importing pictures next to their file names in the excel sheet
    By sunilsoni7 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-26-2012, 09:22 AM
  7. Importing Multiple Text Files to one excel Sheet
    By thabounceisback in forum Excel General
    Replies: 1
    Last Post: 07-24-2012, 05:10 PM
  8. Splitting a Text File and importing into multiple excel files
    By DhavokD in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-28-2009, 02:44 PM

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