954,515 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Newbie needs help

Using VS 2003, I need to access Excel workbooks and sheets. anyone have some code snippets to do this? All help/advice gratefully appreciated
Jim

jspear
Newbie Poster
3 posts since Mar 2008
Reputation Points: 10
Solved Threads: 0
 

Is there anything special you need to do with these once you have located the files?

ProfessorPC
Posting Whiz in Training
270 posts since Dec 2007
Reputation Points: 31
Solved Threads: 29
 

What exactly youa re trying to do.

debasisdas
Posting Genius
6,872 posts since Feb 2007
Reputation Points: 666
Solved Threads: 434
 

Thanks for your reply. I need to let anyone view the worksheets with no way to change them and another group to be able to modify them. I don't know whether , or how, to do this with code or on the spreadsheet itself. Again, I really appreciate you taking the time to help me.
Regards, Jim

jspear
Newbie Poster
3 posts since Mar 2008
Reputation Points: 10
Solved Threads: 0
 

Just to clarify, do you want to open excel through your application or just display the data on a form?

GL.Za
Light Poster
32 posts since Jun 2006
Reputation Points: 10
Solved Threads: 0
 

Thanks for your response. I think That just opening Excel through the application will handle what I need to do. Again thanks for your help.

Jim

jspear
Newbie Poster
3 posts since Mar 2008
Reputation Points: 10
Solved Threads: 0
 

Sorry about the delay, but here is a link to a page with some good code.

http://xldennis.wordpress.com/2007/11/16/open-excel-workbooks-in-vbnet-solutions/

It gives three different options, so one of them should work for you. I used none of them cos i just used a datagridview & dataset - but its simialr to the spreadsheet component option given.

Hope this helps.

GL.Za
Light Poster
32 posts since Jun 2006
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You