Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in Visual Basic .NET only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Member List
Calendar
Today's Posts
Home
Forum
Topic
Visual Basic .NET
Opening Password Protected Word Document in OLE
Opening Password Protected Word Document in OLE
Collapse
This topic is closed.
X
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
Imtiaz Qamar
#1
Opening Password Protected Word Document in OLE
Jun 26 '06, 06:25 AM
How can a password be provided to any password protected document while
opening in an OLE object?
Paul Clement
#2
Jun 26 '06, 05:55 PM
Re: Opening Password Protected Word Document in OLE
On Sun, 25 Jun 2006 23:25:02 -0700, Imtiaz Qamar <ImtiazQamar@di scussions.micro soft.com> wrote:
¤ How can a password be provided to any password protected document while
¤ opening in an OLE object?
There is a password property in the Open method of the Documents collection:
Dim objWord As Word.Applicatio n
Dim objDocument As Word._Document
objWord = CreateObject("W ord.Application ")
objDocument = objWord.Documen ts.Open(FileNam e:="C:\Test Files\Test1.doc ",
PasswordDocumen t:="password")
'...
'...
objDocument.Clo se()
objDocument = Nothing
objWord.Quit()
objWord = Nothing
Paul
~~~~
Microsoft MVP (Visual Basic)
Comment
Post
Cancel
Previous
template
Next
Working...
OK
OK
Cancel
👍
👎
☕
Comment