Results 1 to 3 of 3

Thread: retrieve data from excel to vb

  1. #1

    Thread Starter
    Member
    Join Date
    May 2007
    Posts
    60

    retrieve data from excel to vb

    hello all,

    i use visual studio 2010 , and i would like to know if there is a way in vb to retrieve data located in the cell A1 of an excel workbook located at c:\myworkbook.xlsx
    and display it in a messagebox
    thank you

  2. #2
    Just a Member! seenu_1st's Avatar
    Join Date
    Aug 2007
    Location
    India
    Posts
    2,170

    Re: retrieve data from excel to vb

    i think u hav to post this in vb.net section, better ask any moderator to move to the right area.

    edited: see this thread also
    Last edited by seenu_1st; Apr 1st, 2012 at 10:03 PM.
    Seenu

    If this post is useful, pls don't forget to Rate this post.
    Pls mark thread as resolved once ur problem solved.
    ADO Tutorial Variable types SP6 for VB6, MsFlexGrid fast fill, Sorting Algorithms


  3. #3
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: retrieve data from excel to vb

    i use visual studio 2010 , and i would like to know if there is a way in vb to retrieve data located in the cell A1 of an excel workbook located at c:\myworkbook.xlsx
    and display it in a messagebox
    yes very easy
    check out the tutorial, for automating office applications, in the FAQ thread at the to of this forum

    this is probably the correct forum for this thread
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

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