LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 469
Default file not found stumped

went in and copied file from properties still says is not valid. Have noticed
seems to open word but not the file. after debug word is open with a brown
screen this is what I copied from properties.
Set doc = wd.Documents.Open _
("C:\Documents and Settings\Curtiss A.
Greer\Desktop\2007\2007\Parade\next.doc")

"Don Guillett" wrote:

try it this way

Dim wd As Word.Application
Dim doc As Word.Document
Set wd = New Word.Application
wd.Visible = True
Set doc = wd.Documents.Open("C:\yourfolder\yourdoc.doc")

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Curt" wrote in message
...
get file not found have changed file name numerous times to no avail.
reloaded office 2000 code is good does anyone have an idea as to why it
wont
find file.
this is code I am useing files are in folder opens yearly fine copied code
changed file name and no matter wont find file
Stumped

Private Sub optionbutton35_Click()
OptionButton35.Value = False
Dim Word As New Word.Application
Dim WordDoc As Word.Document
Word.Visible = True
Set WordDoc = Word.Documents.Open("\parade\yearly.doc")
End Sub
Private Sub Optionbutton36_Click()
OptionButton36.Value = False
Dim Word As New Word.Application
Dim WordDoc As Word.Document
Word.Visible = True
Set WordDoc = Word.Documents.Open("\parade\this.doc")
End Sub



 
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
Open File - Need an warning to appear if file cannnot be found Brite Excel Programming 3 April 17th 07 05:56 PM
How to change closed file name - Error: file not found PGM Excel Programming 5 April 18th 06 02:07 PM
File Not Found menu pops up after I open a file Harveytunes Excel Discussion (Misc queries) 3 January 27th 06 07:23 PM
How do I reference external data from a file, file name found in . Clux Excel Discussion (Misc queries) 1 February 10th 05 10:52 PM
'File not found' Hank Scorpio Excel Programming 0 July 29th 03 10:45 AM


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