Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 469
Default Locked for editing

I wrote the program in excel. It opens a word.doc for reading from a
userform. This works fine running from a usb drive. All files on usb were
copied from my hard drive. each file was copied indivually to usb drive. All
files on my drive are in one folder.
Question when run from my drive says word.doc is locked for editing. On usb
goes right to word.doc
I am missing something.
Any one have any ideas from your help I have got project complete with only
this left to solve.
Thanks much to All who post answers you are invaluable
Thanks Again

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default Locked for editing

Are the files on your USB read-only?
....or show some code.

Tim

"Curt" wrote in message
...
I wrote the program in excel. It opens a word.doc for reading from a
userform. This works fine running from a usb drive. All files on usb were
copied from my hard drive. each file was copied indivually to usb drive.
All
files on my drive are in one folder.
Question when run from my drive says word.doc is locked for editing. On
usb
goes right to word.doc
I am missing something.
Any one have any ideas from your help I have got project complete with
only
this left to solve.
Thanks much to All who post answers you are invaluable
Thanks Again



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 469
Default Locked for editing

No I dont believe so. Checked properties on USB shows archive for intro.doc
Here is the code that opens the file. I use this same code on other files
also.
Thanks for looking it is a question that bugs me.

Sub intro()
Dim Word As New Word.Application
Dim WordDoc As New Word.Document
Word.Visible = True
Set WordDoc = Word.Documents.Open("C:\parade\intro.doc")
End Sub



"Tim Williams" wrote:

Are the files on your USB read-only?
....or show some code.

Tim

"Curt" wrote in message
...
I wrote the program in excel. It opens a word.doc for reading from a
userform. This works fine running from a usb drive. All files on usb were
copied from my hard drive. each file was copied indivually to usb drive.
All
files on my drive are in one folder.
Question when run from my drive says word.doc is locked for editing. On
usb
goes right to word.doc
I am missing something.
Any one have any ideas from your help I have got project complete with
only
this left to solve.
Thanks much to All who post answers you are invaluable
Thanks Again




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default Locked for editing

Try changing
Dim WordDoc As New Word.Document

to
Dim WordDoc As Word.Document

Opening your file will create the object.

Tim


"Curt" wrote in message
...
No I dont believe so. Checked properties on USB shows archive for
intro.doc
Here is the code that opens the file. I use this same code on other files
also.
Thanks for looking it is a question that bugs me.

Sub intro()
Dim Word As New Word.Application
Dim WordDoc As New Word.Document
Word.Visible = True
Set WordDoc = Word.Documents.Open("C:\parade\intro.doc")
End Sub



"Tim Williams" wrote:

Are the files on your USB read-only?
....or show some code.

Tim

"Curt" wrote in message
...
I wrote the program in excel. It opens a word.doc for reading from a
userform. This works fine running from a usb drive. All files on usb
were
copied from my hard drive. each file was copied indivually to usb
drive.
All
files on my drive are in one folder.
Question when run from my drive says word.doc is locked for editing. On
usb
goes right to word.doc
I am missing something.
Any one have any ideas from your help I have got project complete with
only
this left to solve.
Thanks much to All who post answers you are invaluable
Thanks Again






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
Locked for Editing Office User Excel Discussion (Misc queries) 0 March 12th 10 03:36 AM
Locked for editing ksn Excel Discussion (Misc queries) 0 June 30th 08 10:18 PM
Locked for editing trainer07 Excel Discussion (Misc queries) 0 January 16th 07 08:36 PM
Locked for editing Lupe Excel Discussion (Misc queries) 1 January 31st 06 08:40 PM
locked for editing even though I'm not in it Sandra Excel Discussion (Misc queries) 1 April 15th 05 01:40 AM


All times are GMT +1. The time now is 07:57 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"