1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

csv import in Excel 2003 rather than .getopen

Discussion in 'Bing' started by thisguy, Oct 1, 2009.

  1. #1
    Hello, trying to help complete a project for a friend. We're trying to create a time clock to payroll time sheet program in excel 2003.
    The input data is a .csv file though.
    It seams that the code we've been using doesn't populate the data properly so there are missing hours on the time sheets even though the info is there according to the .csv file generated by the swipe clock.
    After trying all sorts of options, basically the problem is that the code says open the csv rather than opening it using the import data, using the import external data feature in the data menu.

    the existing code uses "applications.getopen" in the code

    What's the vb code for importing external data instead?

    Thanks All!
     
    thisguy, Oct 1, 2009 IP
  2. pondlife

    pondlife Peon

    Messages:
    898
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #2
    What is your delimeter in the CSV files? I've found that time fields can have odd delimeters such as colons which sometimes mess up the placement in the spreadsheet

    What language are you coding in?

    There are plenty of modules/classes out there for dealing with excel for PHP and Perl especially...
     
    pondlife, Oct 1, 2009 IP
  3. thisguy

    thisguy Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    i'm just using the vb editor in excel 2003.
    the delimiter is set to comma
    no php or pearl involved.
    this is not web based, just an excel .xls
     
    thisguy, Oct 1, 2009 IP
  4. pondlife

    pondlife Peon

    Messages:
    898
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #4
    hmm, so what happens when you take the same data and import it manually using excel's 'text to data' button?

    Sorry, not a VB or Excel person :(
     
    pondlife, Oct 2, 2009 IP
  5. thisguy

    thisguy Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    problem resolved, there was a date format error in the code, import not needed. "application.getopenfile" works fine...

    thanks for the help though!
     
    thisguy, Oct 2, 2009 IP