Results 1 to 3 of 3

Thread: How to import Excel data

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2002
    Location
    Cape Town, SA
    Posts
    144

    How to import Excel data

    Hi

    I need to import data from an excel spreadsheet. I have no idea how to do this. I need to import the data into a vb app where I will validate it before saving it. Can anyone tell me how this is done?

    Thanking you in advance
    PORRASTAR

  2. #2
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    Hi Pornstar, sorry porrastar

    I worte this out this morning which you could easily modify:
    http://www.vbforums.com/showthread.p...hreadid=235042

    This one extracts a range from an Excel sheet & shoves the entries into a listbox, though if you altered it to somethijng like this:

    Code:
    Dim strTempVal As String
    strTempVal = cstr(.range("A1")
    you could hold a single cell's data/text in a variable so you could evaluate it....

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  3. #3
    I don't do your homework! opus's Avatar
    Join Date
    Jun 2000
    Location
    Good Old Europe
    Posts
    3,863
    Do you really want to import the data from an EXCEL-file into a VB appication, just to check the data and than staore it (store it as EXCEL-File?)
    I'd use EXCEL (including VBA) to that.

    Plerase state if you really need to import into VB or if an VBA approach would help.
    You're welcome to rate this post!
    If your problem is solved, please use the Mark thread as resolved button


    Wait, I'm too old to hurry!

Posting Permissions

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



Click Here to Expand Forum to Full Width