Support for Windows Products
Support for Windows Products
How To Fix Error 5152 Vb
If you have Error 5152 Vb then we strongly recommend that you download and run this (Error 5152 Vb) repair tool.
Symptoms & Summary
Error 5152 Vb and other critical errors can occur when your Windows operating system becomes corrupted. Opening programs will be slower and response times will lag. When you have multiple applications running, you may experience crashes and freezes. There can be numerous causes of this error including excessive startup entries, registry errors, hardware/RAM decline, fragmented files, unnecessary or redundant program installations and so on.
In order to fix your error, it is recommended that you download the 'Error 5152 Vb Repair Tool'. This is an advanced optimization tool that can repair all the problems that are slowing your computer down. You will also dramatically improve the speed of your machine when you address all the problems just mentioned.
Recommended: In order to repair your system and Error 5152 Vb, download and run Reimage. This repair tool will locate, identify, and fix thousands of Windows errors. Your computer should also run faster and smoother after using this software.
File Size 746 KB
Compatible Windows XP, Vista, 7 (32/64 bit), 8 (32/64 bit), 8.1 (32/64 bit) Windows 10 (32/64 bit)
your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. Results 1 to 7 of 7 Thread: Runtime error 5152 Tweet Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode Sep 3rd, 2002,03:00 PM #1 Brian Delphino View Profile View Forum Posts Visit Homepage Thread Starter Member Join Date May 2002 Posts 52 Runtime error 5152 I have a glitch in my code that I cant seem to resolve. Sub WriteHTMLFile() 'Creates the HTML file Dim rng As String Dim appWord As Word.Application Dim HTMLFileName As String HTMLFileName = CStr(Worksheets("UsefulStuff").Range("B3")) ActiveSheet.Unprotect 'copy entire range rng = "A1:" & Range("A1").End(xlDown).AddressLocal Range(rng).Copy 'Switch to Microsoft Word so it won't go away when you finish. On Error Resume Next AppActivate "Microsoft Word" 'If Word isn't running, start and activate it If Err Then Shell "c:\Program Files\Microsoft Office\Office\" _ & "Winword /Automation", vbHide AppActivate "Microsoft Word" End If On Error GoTo 0 'Get an Application object so you can automate Word. Set appWord = GetObject(, "Word.Application") With appWord 'activate the doc .Documents(1).Activate 'paste the info as text only .Selection.PasteSpecial Link:=False, DataType:=wdPasteText, Placement:= _ wdInLine, DisplayAsIcon:=False .ActiveDocument.SaveAs FileName:=HTMLFileName, FileFormat:=wdFormatText .Application.Quit SaveChanges:=wdDoNotSaveChanges End With Set appWord = Nothing 'paste text AppActivate "Microsoft Excel" Application.CutCopyMode = False ActiveSheet.Unprotect MsgBox "File saved as:" & vbCrLf & HTMLFileName,
Word 2010 I have a long bit of code that at one point saves a Word document and then saves it again with a new name and the old (legacy) .doc extension. This all works find when the user is running Office 2007. However, it errors out for anyone using Office 2010. The reference libraries are all correct (as far as I know). Can anyone point me towards a solution. Code:
Dim myDoc As Word.Document
Dim saveAsName http://www.vbforums.com/showthread.php?196251-Runtime-error-5152 as String
saveAsName = "some text here" + ".doc"
myDoc.SaveAs fileName:=(saveAsName), FileFormat:=wdFormatDocument Nov 8th, 2012, 07:32 AM Andrew Poulsom Re: Excel VBA Save AS (word document) not working with Word 2010 What error do you get? Nov 8th, 2012, 09:30 AM jscranton Re: Excel VBA Save AS (word http://www.mrexcel.com/forum/excel-questions/668456-excel-visual-basic-applications-save-word-document-not-working-word-2010-a-print.html document) not working with Word 2010 Run-Time Error 5152: This is not a valid file name. Nov 8th, 2012, 09:45 AM Andrew Poulsom Re: Excel VBA Save AS (word document) not working with Word 2010 Firstly, you should use & for concatenation not +. Secondly, try removing the parentheses around (saveAsName). Nov 8th, 2012, 10:33 AM jscranton Re: Excel VBA Save AS (word document) not working with Word 2010 Sorry, it was an & in the script. I free typed that. Let me see if removing the parenthesis works. Nov 8th, 2012, 10:38 AM Andrew Poulsom Re: Excel VBA Save AS (word document) not working with Word 2010 It's always best to copy and paste the actual code rather than typing pseudo code. Nov 8th, 2012, 11:05 AM jscranton Re: Excel VBA Save AS (word document) not working with Word 2010 Removing the parenthesis didn't help. Here is the full piece of code (the variable in formName are all strings). Just to reiterate, this works fine in Word 2007: Code: formName = "Project " & subject & "_" & feedbackType & "_" & errorDate & "_" & recepient
saveAsName = "Reviewer_Feedback_" & formName & ".doc"
the document. One fetches https://support.netdocuments.com/hc/en-us/articles/205218360-Microsoft-Visual-Basic-Run-Time-error-when-saving-a-document-with-our-Office-Integrations-80070002- 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 error 5152 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 error 5152 vb "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 -- Ritul . Follow-Ups: Re: Run-time error 5152 From: Cindy M -WordMVP- Prev by Date: Re: Handling the application's X button Next by Date: Re: Run-time error 5152 Previous by thread: Handling the application's X button Next by thread: Re: Run-time error 5152 Index(es): Date Thread Flag as inappropriate (AWS) Windows Science Usenet ArchiveAboutPrivacyImprint www.tech-archive.net >Archive >Word >microsoft.public.word.vba.customization >2005-07
error 5152 visual basic
Error Visual BasicMicrosoft Visual Basic Run-time error ' ' Description A Microsoft Visual Basic Run-time error ' ' This is not a valid file name error is encountered when creating a paper Resolution Complete Error Microsoft Visual Basic Run-time error ' ' This is not a valid file name Try one or more of the following Check the path to make sure it was typed correctly Select a file from the list of files and folders This error is normally encountered when the file name contains invalid characters or symbols Although this can happen with a variety of symbols the
Error your first visit be sure to check out the FAQ by clicking the link above You may have to register before Runtime Error Vb you can post click the register link above to proceed To start run time error word viewing messages select the forum that you want to visit from the selection below Results to Error Sybase Replication of Thread Runtime error Tweet Thread Tools Show Printable Version Subscribe to this Thread hellip Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode Sep rd runtime error word PM Brian Delphino View Profile View Forum Posts Visit
There are many reasons why Error 5152 Vb happen, including having malware, spyware, or programs not installing properly. You can have all kinds of system conflicts, registry errors, and Active X errors. Reimage specializes in Windows repair. It scans and diagnoses, then repairs, your damaged PC with technology that not only fixes your Windows Operating System, but also reverses the damage already done with a full database of replacement files.
A FREE Scan (approx. 5 minutes) into your PC's Windows Operating System detects problems divided into 3 categories - Hardware, Security and Stability. At the end of the scan, you can review your PC's Hardware, Security and Stability in comparison with a worldwide average. You can review a summary of the problems detected during your scan. Will Reimage fix my Error 5152 Vb problem? There's no way to tell without running the program. The state of people's computers varies wildly, depending on the different specs and software they're running, so even if reimage could fix Error 5152 Vb on one machine doesn't necessarily mean it will fix it on all machines. Thankfully it only takes minutes to run a scan and see what issues Reimage can detect and fix.
A Windows error is an error that happens when an unexpected condition occurs or when a desired operation has failed. When you have an error in Windows, it may be critical and cause your programs to freeze and crash or it may be seemingly harmless yet annoying.
A stop error screen or bug check screen, commonly called a blue screen of death (also known as a BSoD, bluescreen), is caused by a fatal system error and is the error screen displayed by the Microsoft Windows family of operating systems upon encountering a critical error, of a non-recoverable nature, that causes the system to "crash".
One of the biggest causes of DLL's becoming corrupt/damaged is the practice of constantly installing and uninstalling programs. This often means that DLL's will get overwritten by newer versions when a new program is installed, for example. This causes problems for those applications and programs that still need the old version to operate. Thus, the program begins to malfunction and crash.
Computer hanging or freezing occurs when either a program or the whole system ceases to respond to inputs. In the most commonly encountered scenario, a program freezes and all windows belonging to the frozen program become static. Almost always, the only way to recover from a system freeze is to reboot the machine, usually by power cycling with an on/off or reset button.
Once your computer has been infected with a virus, it's no longer the same. After removing it with your anti-virus software, you're often left with lingering side-effects. Technically, your computer might no longer be infected, but that doesn't mean it's error-free. Even simply removing a virus can actually harm your system.
Reimage repairs and replaces all critical Windows system files needed to run and restart correctly, without harming your user data. Reimage also restores compromised system settings and registry values to their default Microsoft settings. You may always return your system to its pre-repair condition.
Reimage patented technology, is the only PC Repair program of its kind that actually reverses the damage done to your operating system. The online database is comprised of over 25,000,000 updated essential components that will replace any damaged or missing file on a Windows operating system with a healthy version of the file so that your PC's performance, stability & security will be restored and even improve. The repair will deactivate then quarantine all Malware found then remove virus damage. All System Files, DLLs, and Registry Keys that have been corrupted or damaged will be replaced with new healthy files from our continuously updated online database.
Downloads in November: 361,927
Download Size: 746KB
To Fix (Error 5152 Vb) you need to follow the steps below:
Download Error 5152 Vb Repair Tool
Click the "Scan" button
Click 'Fix All' and the repair is complete.
Windows Operating Systems:
Compatible with Windows XP, Vista, Windows 7 (32 and 64 bit), Windows 8 & 8.1 (32 and 64 bit), Windows 10 (32/64 bit).