Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 110
Default Opening Word Docs from Excel VBA With full path and name 255 chars

Hi All

I have written some Excel VBA code to open Word documents. I gather
the full path and name in a string.

Dim sFullPathAndName As String
sFullPathAndName = fldrTarget.Path &
Application.PathSeparator & fTarget.Name
Word.Application.Documents.Open sFullPathAndName,
ReadOnly:=True

Sometimes when I then pass this string to
Word.Application.Documents.Open and it is greater than 255 chars I get
the error:

Run-time error '9105'
String is longer than 255 characters.

How can I open these documents with full path and name 255
characters.

Thanks in advance for any ideas.
Chrisso
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
Opening word docs in excel doss04 Excel Discussion (Misc queries) 3 October 4th 08 06:54 PM
Handling Errors When Opening Word Docs From Excel VBA Chrisso Excel Programming 1 January 24th 08 05:55 PM
Printing Word Document from Hyperlink -- Can't get the full path!!! Please Help JadPlane Excel Programming 0 April 17th 05 11:45 AM
Embedding Word Docs into Excel Worksheets and Then Printing The Word Docs mr_melvis Excel Worksheet Functions 1 April 8th 05 03:00 AM
converting excel docs to word docs rolercster New Users to Excel 2 January 4th 05 07:11 PM


All times are GMT +1. The time now is 01:10 PM.

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

About Us

"It's about Microsoft Excel"