+ Reply to Thread
Results 1 to 6 of 6

macro to import .csv to new sheet and rename it

  1. #1
    Registered User
    Join Date
    08-24-2012
    Location
    Maharashtra, Pune
    MS-Off Ver
    Excel 2007
    Posts
    56

    Exclamation macro to import .csv to new sheet and rename it

    hello friends

    can someone help me?

    i want to create a command button on excel to import .csv file in new sheet with predefined name.

    Thanks in advance...

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: macro to import .csv to new sheet and rename it

    attach a csv file please
    If solved remember to mark Thread as solved

  3. #3
    Registered User
    Join Date
    08-24-2012
    Location
    Maharashtra, Pune
    MS-Off Ver
    Excel 2007
    Posts
    56

    Thumbs up Re: macro to import .csv to new sheet and rename it

    Quote Originally Posted by patel45 View Post
    attach a csv file please
    Thanks for quick response.

    this is the .csv file like this there are many other file so i want to create a command button on sheet1 when clicked it will ask the .csv file and after selecting it will import it in new sheet and with predefined name
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: macro to import .csv to new sheet and rename it

    Please Login or Register  to view this content.
    Last edited by patel45; 04-06-2013 at 05:25 AM.

  5. #5
    Registered User
    Join Date
    08-24-2012
    Location
    Maharashtra, Pune
    MS-Off Ver
    Excel 2007
    Posts
    56

    Re: macro to import .csv to new sheet and rename it

    Quote Originally Posted by patel45 View Post
    Please Login or Register  to view this content.
    Thanks for the solution friends, now what happens is when i import file, the import sheet becomes active sheet
    means in sheet1 i have created a button and assigned this macro to import csv file, and when i click this button it imports file but the imported sheet becomes active sheet so again i have to go to sheet1 where i have created command button to import next .csv file, so is it possible that this macro import file but sheet one will always be active sheet so that i can click command button to import next .csv file

    Thanks for your response...

  6. #6
    Registered User
    Join Date
    08-24-2012
    Location
    Maharashtra, Pune
    MS-Off Ver
    Excel 2007
    Posts
    56

    Re: macro to import .csv to new sheet and rename it

    Thanks friends,

    Now i have searched it and thanks for solving my query hope you will help me in my next post, now i am marking this threat as solve as you have solved this

    Thank you very much for your help

+ 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