Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Extra pulling data from excel9?

Status
Not open for further replies.

pseudoman

Programmer
Jan 8, 2004
16
US
I was wondering if anyone could do me a favor and post a example of code written in extra which pulls data from excels cells, and if possible an example of extra populating a excel sheet?

thx in advance...

I thought this was the correct syntax for excel but it fails to work, given the object has already been created...

Dim Claim As Integer
Claim = objWorkBook.WorkSheets.Cells(4,2).Value
Msgbox Claim
 
If the object is properly created this should work.

If you are creatign an object = objWorkBook, I don't think you've specified which sheet to look at.

Try this:
Claim = objWorkBook.WorkSheets(1).Cells(4,2).Value

Where (1) represents the first sheet. You can also use sheet names.

I've not tested this, but it should work.

calculus
 
thank again calc your a guru, When I grow up I want to be just like you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top