| | |
How to access and modify values of a OLE object(Excel Worksheet)
![]() |
•
•
Join Date: Jul 2006
Posts: 13
Reputation:
Solved Threads: 0
Hello,
I want to know is it possible to access and modify content of a Excel worksheet dynamically inserted as OLE object in a form. I wish to check and update values of various cells by cell number of the worksheet, but not being sure if possible.
thanks in advance
I want to know is it possible to access and modify content of a Excel worksheet dynamically inserted as OLE object in a form. I wish to check and update values of various cells by cell number of the worksheet, but not being sure if possible.
thanks in advance
Quality Website Design & Development-India
Professional Website layouts & Templates - Ready to Use website Designs
Great Directory | TN Directory - Free SEO friendly directories
Professional Website layouts & Templates - Ready to Use website Designs
Great Directory | TN Directory - Free SEO friendly directories
•
•
Join Date: Jul 2006
Posts: 13
Reputation:
Solved Threads: 0
Quality Website Design & Development-India
Professional Website layouts & Templates - Ready to Use website Designs
Great Directory | TN Directory - Free SEO friendly directories
Professional Website layouts & Templates - Ready to Use website Designs
Great Directory | TN Directory - Free SEO friendly directories
•
•
Join Date: Jul 2006
Posts: 13
Reputation:
Solved Threads: 0
Quality Website Design & Development-India
Professional Website layouts & Templates - Ready to Use website Designs
Great Directory | TN Directory - Free SEO friendly directories
Professional Website layouts & Templates - Ready to Use website Designs
Great Directory | TN Directory - Free SEO friendly directories
•
•
Join Date: Jun 2007
Posts: 166
Reputation:
Solved Threads: 9
See, I requested you to try.
See when you have the connection as an OLE object its behaviour is just like a table of the database. Each sheet corresponding to one table and within each sheet the columns represent table fields.
the record set object works fine here also.
Try and let me know your progress.
See when you have the connection as an OLE object its behaviour is just like a table of the database. Each sheet corresponding to one table and within each sheet the columns represent table fields.
the record set object works fine here also.
Try and let me know your progress.
•
•
Join Date: Jul 2006
Posts: 13
Reputation:
Solved Threads: 0
But the excel documents I am working with are not the set of records like we have in database.
I am working with excel files which are soft copies of various physical documents like invoice, quotations etc. Programitically I would say various informations are scattered all around.
However Cell Number where a specific information is found is always fixed. This is the reason i wish to access is by cell numbers rather than by database approach.
I am working with excel files which are soft copies of various physical documents like invoice, quotations etc. Programitically I would say various informations are scattered all around.
However Cell Number where a specific information is found is always fixed. This is the reason i wish to access is by cell numbers rather than by database approach.
Quality Website Design & Development-India
Professional Website layouts & Templates - Ready to Use website Designs
Great Directory | TN Directory - Free SEO friendly directories
Professional Website layouts & Templates - Ready to Use website Designs
Great Directory | TN Directory - Free SEO friendly directories
•
•
Join Date: Jun 2007
Posts: 166
Reputation:
Solved Threads: 9
•
•
•
•
But the excel documents I am working with are not the set of records like we have in database.
I am working with excel files which are soft copies of various physical documents like invoice, quotations etc. Programitically I would say various informations are scattered all around.
However Cell Number where a specific information is found is always fixed. This is the reason i wish to access is by cell numbers rather than by database approach.
That is, suppose your recordset is in the second record, then the raw corresponds to the cursor location second among the records.
Then you have to access columns right with the recordsetname.Fields(index)-which is your columns in excel in that row
recordsetname.MoveNext increases the row count to one
and again your column index has to reinitialise else it will be out of your excel columns.
Now, you got it I hope.
Get back to the thread
regards
AV Manoharan
![]() |
Similar Threads
- Accessing excel worksheet in a word document (VB macro). (Visual Basic 4 / 5 / 6)
- Access displays 'OLE object' on linked Oracle datetime (Oracle)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: anyone interested in developing open source software
- Next Thread: help me its urgent!
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age application basic beginner birth bmp calculator cd cells.find click client code college component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report save search sendbyte sites sort sql sql2008 sqlserver subroutine tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





