Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / July 2005

Tip: Looking for answers? Try searching our database.

Run-time error 5152

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
rshah - 07 Jul 2005 18:19 GMT
Hi,
I have a macro within a word doc, which fetches TIF images from a server and
stores is temporarily on c:\temp. There are 2 macros in the document. One
fetches the images and other creates a Table of Contents.
Once the images macro is run the images are pasted in the document.
Simultaneously page nos for the particular document is updated in the
database (Oracle 9i).

The macro runs fine if there are few images, but if the number of images
increases (say 200-300) then after 4-5 images are pasted it gives me a
"Run-time error 5152": This is not a valid filename. When that particular
image is there in the temp folder and on the server.

Sometimes the macro runs fine but other times it gives me the error.

Following is the link for the document.

www.ritulshah.com/AppealsPackage.doc

Thanks in advance
Signature

Ritul

Cindy M  -WordMVP- - 10 Jul 2005 17:04 GMT
Hi =?Utf-8?B?cnNoYWg=?=,

> I have a macro within a word doc, which fetches TIF images from a server and
> stores is temporarily on c:\temp. There are 2 macros in the document. One
[quoted text clipped - 3 lines]
> database (Oracle 9i).
>  
Pasted? Why pasted? Might help if you show us the macro code and tell us the
versions of Word and Windows involved.

Have you checked exactly which filename is being used at the point the code
fails to make sure it really is a valid file path and name?

> The macro runs fine if there are few images, but if the number of images
> increases (say 200-300) then after 4-5 images are pasted it gives me a
> "Run-time error 5152": This is not a valid filename. When that particular
> image is there in the temp folder and on the server.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.