|
-
Apr 1st, 2012, 06:46 PM
#1
Thread Starter
Member
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
-
Apr 1st, 2012, 10:00 PM
#2
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.
-
Apr 2nd, 2012, 05:44 AM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|