#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default GetObject

use GetObject to start an instance of Excel. Assume you return the
reference to xlapp

set xlWkBk = xlApp.Workbooks.open( Filename:="C:\Myfile.xls",
Password:="ABCD")

--
Regards,
Tom Ogilvy

wrote in message
...
I'm using VB script (not VBA) to manipulate the excel
file, that is why I need the GetObject procedure
-----Original Message-----
if you are using Excel VBA, use

Workbooks.open Filename:="C:\Myfile.xls", Password:="ABCD"

You don't need to use GetObject and that would be the

long way to do it.

--
Regards,
Tom Ogilvy

"Michael" wrote in

message
...
How can I use GetObject to open an Excel file that has
password protection without getting the Excel dialog

popup
(I have the password and can supply it but GetObject
doesn't appear to accept any paramaters other than the
file name)



.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
GetObject-question Tom Excel Programming 1 June 10th 04 05:17 PM
Controlling Reflection1 from Excel using getObject Michael Nisgore Excel Programming 0 March 3rd 04 03:30 AM
Invoking Excel via Getobject(From Access) to invoke Excel Macro Acie[_2_] Excel Programming 1 February 27th 04 07:56 PM
Is there a better option than Getobject to access a .xls? Dave F[_4_] Excel Programming 4 October 28th 03 02:24 PM
Excel Getobject error Jaya Excel Programming 4 July 17th 03 07:13 PM


All times are GMT +1. The time now is 11:13 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"