|
-
Nov 30th, 1999, 12:33 PM
#1
Thread Starter
New Member
I need to open and read an Excel 97 file. Previously I have managed to create an Excel workbook and write to it using the following code:
Set objXLapp = CreateObject("Excel.Application")
Set objXLbook = objXLapp.Workbooks.Add
Set objXLsheet = objXLapp.Worksheets(1)
I thought that I could use a similar method for opening an existing Excel file. But I have had no sucess in finding the right code.
Has anyone got any ideas or pointers?
All help appreciated
-
Nov 30th, 1999, 12:43 PM
#2
Hyperactive Member
Try:
Set objXLsheet = GetObject("full pathname")
objXLsheet.Application.Visible=True
objXLsheet.Parent.Windows(1).Visible=True
Al.
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
|