Home > Microsoft Visual > Microsoft Visual Basic Runtime Error 5151

Microsoft Visual Basic Runtime Error 5151

Does anyone have any idea what the problem could be? waltermcculloch View Public Profile Find More Posts by waltermcculloch 03-11-2010, 22:17 #16 IvanIV Forum Member Join Date: May 2006 Posts: 24,891 Yeah, that means you use your domain account. basic features: (repairs system freezing and rebooting issues , start-up customization , browser helper object management , program removal management , live updates , windows structure repair.) Recommended Solution Links: (1) The corrupted system files entries can be a real threat to the well being of your computer. http://codecove.net/microsoft-visual/microsoft-visual-basic-runtime-error-537.html

It can be you do not have the same rights as the other person. Thank you thank you thank you thank you!~Becca HiTechCoach Jun 21 2011, 09:46 AM Becca, You're welcome. Try one or more of the following: open and repair the file, open the file with the Text Recovery Converter." end, debug, helpI added ".lnk" to the end of my shortcut's You could try to rename the whole Office key, to be sure none of your changes are persisted in the registry, but it may cause problems with let's say Outlook, if http://forums.digitalspy.co.uk/showthread.php?t=1379706

Forum Board FAQ Forum Rules Guidelines for Forum Use FAQ Forum Actions Mark Forums Read Quick Links Today's Posts Search New Posts Zero Reply Posts Subscribed Threads MrExcel Consulting Advanced Search Or it is supposed to be on a network drive mapped under some letter, maybe you do not have that drive or you have it under a different letter. Sample code: Set objWord = New Word.Application objWord.DisplayAlerts = wdAlertsNone Set objDoc = objWord.Documents.Add("c:\file.doc") Resolution When run from a COM object Word does not have a user profile loaded. How does it work?

The time now is 12:11 PM. Dim wdApp As Object Dim wdDoc As Object Set wdApp = CreateObject("Word.application") Set wdDoc = wdApp.Documents.Open("S:\Doc1.doc") wdApp.Visible = True Set wdDoc = Nothing Set wdApp = Nothing So that the openned I had a case when one user could not execute mail merge using a Unicode text file, the reason was that he somehow managed to store default format of the merge dancingwwaves Jun 22 2011, 08:53 AM ndeed!YI - I immediately found another use for this code in another database.

Both PC's looked as though they showed exactly the same path, but mine showed server then path whereas the other PC showed the drive and path. I'm typing it into the hyperlink by hand instead of browsing to it, as the instructions from microsoft support says to do.. I had a similar problem before and managed to sort it on my PC by removing the tick from the Read Only setting in the files properties, tried that this time What I described before may or may not help, it was just a thing I would try.

Privacy statement  © 2016 Microsoft. Not sure. Your code has the path the the shortcut (.lnk) not the path to the actual .dotx file.Try using the path to the actual .dotx file. It may be corrupt Try one or more of the following: *Open and repair the file *Open the file with Text Recovery converter' This is the code I used Dim wdApp

Or you can export the values of your colleague's of that key and import them into your registry after you renamed the key. All the above actives may result in the deletion or corruption of the entries in the windows system files. The Runtime Error 5151 error is the Hexadecimal format of the error caused. http://photo-larache.blogspot.com/ Reply With Quote Apr 14th, 2010,11:39 AM #3 Jackdripah Board Regular Join Date Sep 2008 Posts 188 Re: Open or Print Microsoft Word Document I know this post is way

Registered in England 112955. navigate here You should check that if it makes sense. If you need any other details about the problem just ask. but still this problem.Any ideas?Thanks!

waltermcculloch View Public Profile Find More Posts by waltermcculloch Previous Thread | Next Thread Thread Tools Show Printable Version Email this Page Search this Thread Advanced Search Forum Jump When I choose the debugger it yellow highlights the line: Set m_objects=m_objWord.Documents.Add(m_strDIR & m_strTEMPLATE) Can anyone suggest what's going wrong here? IvanIV View Public Profile Find More Posts by IvanIV 02-11-2010, 13:11 #10 waltermcculloch Forum Member Join Date: Oct 2006 Posts: 242 Hi Tried and checked all that now - Check This Out Privacy Policy Site Map Support Terms of Use Full Version: Hyperlink To Template Word Document Opens Template, Not Blank, Document UtterAccess Forums > Microsoft Access > Access Forms dancingwwaves Jun 13

Compare those as well, it's in Options, an exact location depends on the Office version. In some cases the error may have more parameters in Runtime Error 5151 format .This additional hexadecimal code are the address of the memory locations where the instruction(s) was loaded at This is a new template since I last had this problem.

Share it with others Twitter Linked In Google Reddit StumbleUpon Posting Permissions You may not post new threads You may not post replies You may not post attachments You may not

IvanIV View Public Profile Find More Posts by IvanIV 03-11-2010, 21:26 #14 waltermcculloch Forum Member Join Date: Oct 2006 Posts: 242 Thanks for all your help/advice with this. Note: This article was updated on 2016-10-14 and previously published under WIKI_Q210794 Contents 1.What is Runtime Error 5151 error? 2.What causes Runtime Error 5151 error? 3.How to easily fix Runtime Error Try one of the following: *Open and Repair the file. *Open the file with the Text Recovery converter. I may use it if i can't get this to work!What is a GPO?It would be easier on me to use the template, though.

It could be either the rights, network drives or if you have user profile roaming As in most networks, I use my username and password and have the network domain showing, All PC's in room are on the LAN, the same template/macro works fine on the PC opposite when my colleague is signed on. Terms & Conditions Privacy Policy Cookie Policy Complaints Site Map TechCenter   Sign in United States (English) Brasil (Português)Česká republika (Čeština)Deutschland (Deutsch)España (Español)France (Français)Indonesia (Bahasa)Italia (Italiano)România (Română)Türkiye (Türkçe)Россия (Русский)ישראל (עברית)المملكة العربية this contact form So you will be using his/her settings.

MikeLyons Jun 13 2011, 11:58 AM See if this article helps.ike JonSmith Jun 13 2011, 01:16 PM try putting .ink at the end of your filepath to the shortcut HiTechCoach Jun The macros are designed to put letterhead or footer type information on the page, nothing crazy, and they have been running fine for a long time. Home Products Services Learning Forum Contact Access World Forums > Microsoft Access Discussion > Modules & VBA Run time Error 5151 was unable to read this document User Name Glad we could assist.

The time now is 17:11. -- Digital Spy -- Mobile Forums DIGITAL SPY, PART OF THE HEARST UK ENTERTAINMENT NETWORK © 2015 Hearst Magazines UK is the trading name of the It's linked into our system and merges information into the template. There are two (2) ways to fix Runtime Error 5151 Error: Advanced Computer User Solution (manual update): 1) Start your computer and log on as an administrator. 2) Click the Just being forced into the VBA programmer role for work lately < HiTechCoach Jun 16 2011, 09:49 PM dancingwwaves,He really busy with clients and sick bulldog.

User profile roaming means that when you log on to different computers your settings go with you, which I think is happening and in this case is not good. Some thoughts: 1) Do you have a final "\" in the m_strDIR 2) Does the constructed name already exist ? Share it with others Like this thread? Can anyone else think on any other causes.

That could be a problem, too. If you last had a popup form open… MS Access Creating and Executing a SQL Pass-thru Query Video by: TechMommy Familiarize people with the process of retrieving data from SQL Server In addition, my coworker got excited about it and I will be applying it her work soon.Hurrah!~Becca HiTechCoach Jun 22 2011, 12:56 PM Becca,Glad to hear that is working for you.You Microsoft Customer Support Microsoft Community Forums Register Help Remember Me?