|
-
Oct 27th, 2000, 04:08 AM
#1
Thread Starter
Lively Member
How do I read from an Excel file, with Rich Text, Images and stuff?
D
-
Oct 27th, 2000, 06:35 AM
#2
Lively Member
You'll need to make a reference to 'Microsoft Excel 9.0 Object Library' in your project.
This code should get you on your way.....
Code:
Dim ExApp As Excel.Application
Set ExApp = New Excel.Application
' make Excel visible
ExApp.Visible = True
' open the xls file
ExApp.Workbooks.Open "c:\my spreadsheet.xls"
' show the text from cell A1
MsgBox Range("A1").text
Try recording some macros in Excel, that will give you most of the code you'll need to use.
-
Oct 27th, 2000, 07:16 AM
#3
Thread Starter
Lively Member
Thanks, man.
When I set ExApp.Visible to False, it worked almost exactly the way i wanted it to. But still I can't get the pictures that live in the sheet.
D
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
|