Consulting

Results 1 to 3 of 3

Thread: how to set import defaults?

  1. #1

    how to set import defaults?

    Hi Folks,

    I'm using Excel 2007 to analyze data from a curriculum program - I've written a handful of macros that clean up the data and compute grades.

    I'm trying to make the project a little more user-friendly and I'm using Excel's built-in import dialog to import .csv files into a worksheet. I would like to specify the import defaults in my code so the user doesn't have to do this each time - the file format is always .csv so I want the delimiter to be "comma" but I don't want to have to specify this every time I import. Is there a way to set this default?

    Thanks, any input would be appreciated.

  2. #2
    Moderator VBAX Guru Simon Lloyd's Avatar
    Joined
    Sep 2005
    Location
    UK
    Posts
    3,003
    Location
    Why not record your actions on the macro recorder and then adapt the code?
    Regards,
    Simon
    Please read this before cross posting!
    In the unlikely event you didn't get your answer here try Microsoft Office Discussion @ The Code Cage
    If I have seen further it is by standing on the shoulders of giants.
    Isaac Newton, Letter to Robert Hooke, February 5, 1675 English mathematician & physicist (1642 - 1727)

  3. #3
    I've tried this, but the macro recorder does not record anything when I change settings in the import dialog.

Posting Permissions

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