+ Reply to Thread
Results 1 to 4 of 4

insert a csv file data into excel worksheet

  1. #1
    Registered User
    Join Date
    06-01-2015
    Location
    indonesia
    MS-Off Ver
    2007
    Posts
    30

    insert a csv file data into excel worksheet

    hi guys,

    i need to insert data from a csv file to an excel worksheet (attached), using VBA/macro, not copy-paste.

    the conditions are:
    - can browse to located the csv file (from button in worksheet "input").
    - data from csv file should be inserted below last data in that worksheet (not always from row 8).
    - first row (as header) & first column in csv file not included; where:
    - Question 001 - Question 010 should be in "ID No" column
    - Question 011 - Question 022 should be in "NAME" column
    - each question 023 - question 047 should be in column C to AA, respectively.


    thank you
    Attached Files Attached Files

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: insert a csv file data into excel worksheet

    Hi enemy-zone,

    The red instructions don't yet make any sense to me but, here's some of your requirement:

    Please Login or Register  to view this content.

    Is this what you mean??

    Please Login or Register  to view this content.
    Last edited by xladept; 09-08-2015 at 07:05 PM.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Registered User
    Join Date
    06-01-2015
    Location
    indonesia
    MS-Off Ver
    2007
    Posts
    30

    Re: insert a csv file data into excel worksheet

    xladept,

    your code saves my day... it works...
    csv file is from omr scanner, and each character extracted to a single column/semicolon.

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: insert a csv file data into excel worksheet

    Hi enemy-zone,

    Glad it worked and thanks for the rep!

+ 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 code for opening excel file and insert a new column in exisiting excel file
    By saratu in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-21-2014, 02:55 PM
  2. Replies: 0
    Last Post: 06-11-2014, 03:10 AM
  3. Replies: 0
    Last Post: 12-05-2013, 04:57 PM
  4. Cannot Insert Excel Worksheet From File into PowerPoint
    By rookst in forum PowerPoint Formatting & General
    Replies: 6
    Last Post: 10-17-2013, 01:15 PM
  5. Replies: 16
    Last Post: 07-22-2013, 10:01 PM
  6. insert a csv file as a worksheet from DOS prompt
    By ihot in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-17-2008, 10:26 PM
  7. [SOLVED] How can I insert a picture from file while worksheet is protected
    By ChrisYH in forum Excel General
    Replies: 0
    Last Post: 07-27-2005, 12:05 AM

Tags for this Thread

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