Thanks, MajGen T" This is a scary man, and I want to try and get this for him. Compatibility: Windows 7, 8, Vista, XP Download Size: 6MB Requirements: 300 MHz Processor, 256 MB Ram, 22 MB HDD Limitations: This download is a free evaluation version. All rights reserved. Welcome to the Microsoft Office Forums where you can ask questions or find answers on anything related to Word, Excel, Outlook, Access or any of the other Office applications. have a peek at this web-site
Only problem, I have been TRYING to duplicate the problem for almost an hour, and haven't gotten anything. QUESTIONS 1. The variable is never given a value, and is never used. I started out in 2003 where it worked.
Btw you can always go back and hardcoding the path like in the old template! This corrupted system file will lead to the missing and wrongly linked information and files needed for the proper working of the application. The variable is never given a value, and is never used. SkyrimSE is Quiet Was user-agent identification used for some scripting attack techique?
Do not see anything obvious, other than the fact you have: Dim ResponseQuestion As String but that is it. Forum New Posts FAQ Calendar Forum Actions Mark Forums Read Quick Links Today's Posts View Site Leaders What's New? The system opens up the document from IE (I assume via some sort of ActiveX magic); the document opens in Word, not in Internet Explorer. http://stackoverflow.com/questions/24539104/modify-an-opened-word-document-through-excel there is a call to "Withdrawl" - with no code to see what that does.
There's ridiculously little to go on. So can the behaviour be reproduced at that moment (That would be handle) or is the error always once in a while and just a single error at the time? :whistle: Occasionally, under what seems to be absolutely arbitrary times with no identifiable causes, this upload macro causes a "4160 BAD FILE NAME" error and fails to upload the document to their Maybe so, but it is hard to really analyze things without full information.
I am not getting what is SUPPOSED to happen. https://groups.google.com/d/topic/microsoft.public.word.vba.general/1Obe_YZLtvM Store a document on SkyDrive that contains the following macro: Sub showProblem() MsgBox "Press OK to continue" Documents(ThisDocument.FullName).UndoClear End Sub 2. This is set to "%userprofile%\Locals~1\Temp\Contex" when the error doesn't occur. Close Box Join Tek-Tips Today!
Click Here to join Tek-Tips and talk with other members! Check This Out there is a call to "CaseClosure" - with no code to see what that does. Why declare a variable and never use it? I'd feel uncomfortable posting it here, though, and I don't know what good it could do.
Thank you kindly, David Sub AutoOpen() Dim ResponseQuestion As String 'I added DoEvents here in the vain hope that it would somehow ease the problem--no effect. The bad file name error is triggered twice; once on the first (non error-trapped) line of WorkingDoc.SaveAs filename, wdFormatHTML the other time on: Set WorkingDoc = Application.Documents(filename) The problem, it seems, Also, they are not called when the error results. Source I need it by Friday.
Novice Computer User Solution (completely automated): 1) Download (Runtime Error 4160 Bad File Name) repair utility. 2) Install program and click Scan button. 3) Click the Fix Errors button when scan David MOS MASTER07-28-2005, 09:26 AMAs soon as I get the error, I'll try changing the longfilename error. I mean a line like: WorkingDoc.SaveAs "C:\DOCUME~1\DGOLDF~1\LOCALS~1\Temp\Contex\1_0\1_0.htm", wdFormatHTML :whistle: fumei07-26-2005, 01:14 PMOk, I think....and I mean, I just think...it may have to do with WebOptions.OrganizeInFolder.
Member Login Remember Me Forgot your password? share|improve this answer edited Jul 2 '14 at 19:39 answered Jul 2 '14 at 19:34 asp8811 627412 I tried your code, but it doesn't work the same.. I know. You could btw put some code in to check if the attaching part really took place! (This is not always a succes...so you should check) Have you checkt on the upload
Monday, September 02, 2013 3:37 PM Reply | Quote 0 Sign in to vote <
I had actually re-tested that for the millionth time earlier this morning. Tuesday, September 03, 2013 10:46 AM Reply | Quote 0 Sign in to vote Hi Julian Shouldn't be any "garbage collection" happening in VBA - that's strictly .NET (or Java) and I get this error: Run-time error 4160 - bad file name. –Sara19 Jul 3 '14 at 6:23 add a comment| up vote 0 down vote I tried this version path = It may be a coincidence, but I think it's not, but these errors seemed to have started once I started using AutoOpen.
Around 2 or 3 customers have reported them in the last couple of years. I'm getting error 4160. When I used just the file name, it was successful. Now in 2007 for some reason it's throwing up that error.I recorded the macros in both version separately.
Is the instruction correct? Public Function SearchFunction(SearchString As String, MatchWhole As Boolean, ReplaceBoolean As Boolean) As Boolean 'Search Function SearchFunction = False Selection.Find.ClearFormatting With Selection.Find .Text = SearchString .Replacement.Text = "" .Forward = True .Wrap I can make changes to the DocPath file. Perhaps some garbage collection going on, who knows?
SearchFunction is "a quick ActiveDocument.Find replacement". As it happens, I am continuing to pass Document objects much of the time without problem, mainly using the new approach wherever customers have reported a 5825. Edited by Julian Ladbury Thursday, September 05, 2013 5:24 PM clarity Thursday, September 05, 2013 5:21 PM Reply | Quote 0 Sign in to vote Hi Julian Wouldn't all you need Several other of their values seem to be blank as well.
You are going to supply the users with a button...to do what again? A weird and spooky clock Why does WordPress use outdated jQuery v1.12.4? Set WordApp = CreateObject("Word.Application") Set WordDoc = WordApp.Documents.Open(ThisWorkbook.path & "\Report.docx") '..other code End If Else 'I create a new document called "Report.docx" if it doesn't exist 'in the folder where ThisWorkbook I >also recreated the normal.dot file to no avail.
The problem is that the error seams to come random. @wadiohead, Could you explain why you're so sure the templates needs to be attached to that template?