Consulting

Results 1 to 4 of 4

Thread: A macro used to migrate data from a csv file into ms excel 2007

  1. #1
    VBAX Mentor
    Joined
    Aug 2010
    Posts
    457
    Location

    A macro used to migrate data from a csv file into ms excel 2007

    Hi, I was wondering if it was possible to create a macro button that was able to retrieve data from a csv and when clicked auto-populate the data within the csv file (excel formatted spreadsheet) onto a blank worksheet worksheet? Can this be done? If so, how? I currently have a text file wizard option that previews the csv file when I click on the macro button I created, but doesn't auto populate the figures onto the spreadsheet. Any reasons why this is happening???


    Thanks for your contributions

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Just import it in Excel with the macro recorder on.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Mentor
    Joined
    Aug 2010
    Posts
    457
    Location
    Is their a difference using a macro recorder compared to code? I was always advised to use code when creating a macro, purely on the basis of efficiency.

  4. #4
    Moderator VBAX Wizard Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    5,064
    Location
    XLD's suggestion will allow you to record your normal steps undertaken. Once this is done post the code here so we can adjust if necessary.
    Remember To Do the Following....
    Use [Code].... [/Code] tags when posting code to the thread.
    Mark your thread as Solved if satisfied by using the Thread Tools options.
    If posting the same issue to another forum please show the link

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •