Error Number 4248
Contents |
soon) Ruby (coming soon) Getting Started Code Samples Resources Patterns and Practices App Registration Tool Events Podcasts Training API Sandbox Videos Documentation Office Add-ins Office Add-in Availability Office vba error 4605 Add-ins Changelog Microsoft Graph API Office 365 Connectors Office 365 REST APIs runtime error 4248 no document is open SharePoint Add-ins Office UI Fabric Submit to the Office Store All Documentation https://www.yammer.com/ http://feeds.feedburner.com/office/fmNx Ask a question Quick
Run Time Error 5941 Word Macro
access Forums home Browse forums users FAQ Search related threads Remove From My Forums Asked by: Run-time error 4248 when opening a Word document with a double click in Access Microsoft
Run Time Error 4605 Word 2010
Office for Developers > Access for Developers Question 0 Sign in to vote Hi, I'm working with Office 2007 and 2010. I have a Word template which performs some checking on the document (based upon it) when it is opened. In different points it uses the ActiveDcument propiety. When I open the document normally, everything OK When I open the document from runtime error 4248 word 2007 Access using the following code, it is also OK: Dim objWordApp As Word.Application Dim objWordDoc As Word.Document Set objWordApp = CreateObject("Word.Application") With objWordApp .Visible = false ' or True .Documents.Open("MYDoc.docx") End With But when I double click the bound object frame (OLE) in an Access frame, Word will generate an error when it encounters the ActiveDocument reference. Run-time error '4248': This command is not available because no document is open. Could you explian me why? And suggest some work around? Lauro P.S.: I noticed that Application.UserControl is TRUE (in the two first cases; and False in the last) [strange! I would have tought that in the second one would it be false...] Edited by Lauro2 Thursday, August 16, 2012 10:08 PM Moved by Leo_GaoModerator Wednesday, August 22, 2012 2:42 AM (From:Word for Developers) Thursday, August 16, 2012 10:06 PM Reply | Quote All replies 0 Sign in to vote hi, I have an Access (2007 or 2010) database; in a form I have a bound object frame wich contains a Word (2007 or 2010) file. The Word documents are based on a MyTemp
because no document is open. Error code 4248 If this is 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
Run Time Error 4605 Visual Basic
that you want to visit from the selection below. Results 1 to 4 of 4 Thread: [RESOLVED] run-time error '5941' application-defined or object-defined error This command is not available because no document is open. Error code 4248 Tweet Thread Tools Show Printable Version Subscribe to this Thread… Display Linear run-time error 4605 excel Mode Switch to Hybrid Mode Switch to Threaded Mode Apr 23rd, 2010,10:41 AM #1 but43r View Profile View Forum Posts Thread Starter New Member Join Date Apr 2010 Posts 3 [RESOLVED] This command is not available because no document is open. Error https://social.msdn.microsoft.com/Forums/office/en-US/ebad1fae-b779-4470-9ce8-36f956ffc46e/runtime-error-4248-when-opening-a-word-document-with-a-double-click-in-access?forum=accessdev code 4248 Hi, I have a web application that used to be hosted on Server 2003 and IIS6, recently the web application was moved to Server 2008 R2 and IIS7.5 and now is just wont work. I just give me this error. This command is not available because no document is open.4248 Here is the code that causes it to throw that error and I have marked specific line with ----> where it crashes. Dim wdApp ' Create the word object Set wdApp = http://www.vbforums.com/showthread.php?612343-RESOLVED-This-command-is-not-available-because-no-document-is-open-Error-code-4248 Server.CreateObject("Word.Application") if Err.number <> 0 Then nErr = 1 szErr = " Error creating the Word Object " & Err.Description Exit sub End if ' Open the Template document wdApp.Documents.Open sSourcePath if Err.number <> 0 Then nErr = 1 szErr = " Error Opening the template document " & sSourcePath & " " & Err.Description Exit sub End iF Dim arrTags, arrValues Dim iLoop ' Organise the Strings arrTags = Split(sTags, ", ") arrValues = Split(sValues, " | ") Loop over the strings pulling out the assigned values For iLoop = 0 To UBound(arrTags) -----> wdApp.ActiveDocument.Content.Find.Execute arrTags(iLoop), , True, , _ , , , , , arrValues(iLoop), 2 if Err.number <> 0 Then nErr = 1 szErr = " Error while looping over the tags and values " & Err.Description & Err.Number Exit Sub End If Next ' Apply to the active document wdApp.ActiveDocument.Content.Find.Execute if Err.number <> 0 Then nErr = 1 szErr = " Error calling the execute method on the Active Document " & Err.Description & Err.Number Exit Sub End If ' Save the document wdApp.ActiveDocument.SaveAs sDestPath If Err.number <> 0 Then nErr = 1 szErr = " Error Saving the document " & sDestPath & " " & Err.Description Exit Sub End If ' Close the Document and free the resources wdApp.ActiveDocument.Close wdApp.Quit Set wdApp = Nothing The question is, do I need any libraries or something to run ActiveDocument. The person who wrote the code left the manual to saying that this application need Microsoft Office Server
Forums Excel Questions Run Time Error 4248 when opening Word Doc from Excel Results 1 to 10 of 10 Run Time Error 4248 when opening Word Doc from ExcelThis is a discussion on Run Time Error 4248 when opening Word Doc from Excel within http://www.mrexcel.com/forum/excel-questions/757582-run-time-error-4248-when-opening-word-doc-excel.html the Excel Questions forums, part of the Question Forums category; I haved a pricing worksheet that our workgroup uses. It opens a Word Document from and Excel Worksheet and merges ... LinkBack LinkBack URL About LinkBacks Bookmark & Share https://www.experts-exchange.com/questions/27505058/Errors-with-Word-opening-attachment-from-Outlook-Run-Time-Error-4248.html Digg this Thread!Add Thread to del.icio.usBookmark in TechnoratiTweet this thread Thread Tools Show Printable Version Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode Feb 13th, 2014,02:26 PM #1 CIF New Member Join Date Nov 2011 Posts time error 6 Run Time Error 4248 when opening Word Doc from Excel I haved a pricing worksheet that our workgroup uses. It opens a Word Document from and Excel Worksheet and merges info from Excel to Word. It worked fine while everyone was using Office 2007. The users that have Office 2010 installed on their computers are getting a Run Time Error 4248 when they attempt to create the Word document from the Word Template. Here is a piece of the run time error VBA code in the Excel worksheet. Dim wrdApp As Word.Application Set wrdApp = CreateObject("Word.Application") Application.ScreenUpdating = False With wrdApp .Documents.Add Template:="G:\ABP\ArchSpec\A-Operations\Group Templates\Quote Templates\MWLinearQuote.dotx" Any help would be very much appreciated. Share Share this post on Digg Del.icio.us Technorati Twitter Reply With Quote Feb 13th, 2014,04:51 PM #2 NdNoviceHlp Board Regular Join Date Nov 2002 Location Manitoba Canada Posts 1,588 Re: Run Time Error 4248 when opening Word Doc from Excel Check to make sure the 2010 edition has the Word reference selected in the VBA editor (Tools>references). HTH. Dave Share Share this post on Digg Del.icio.us Technorati Twitter Reply With Quote Feb 14th, 2014,06:25 AM #3 CIF New Member Join Date Nov 2011 Posts 6 Re: Run Time Error 4248 when opening Word Doc from Excel Thanks, Dave. I did that and it is selected. Share Share this post on Digg Del.icio.us Technorati Twitter Reply With Quote Feb 14th, 2014,08:26 AM #4 NdNoviceHlp Board Regular Join Date Nov 2002 Location Manitoba Canada Posts 1,588 Re: Run Time Error 4248 when opening Word Doc from Excel The only other thing I can suggest is to change the priority of the reference (ie. move it up the reference list). HTH. Dave Share Share this post on Digg Del.icio.us Technorati Twitter Reply With Quote Feb 14th, 2014,10:47 AM #5 CIF New Member Join Date Nov 2011 Posts 6 Re: Run Time Error 4248 when opening Word Doc from Excel That d
for Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help Ask a Question Ask for Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help Expand Search Submit Close Search Login Join Today Products BackProducts Gigs Live Careers Vendor Services Groups Website Testing Store Headlines Experts Exchange > Questions > Errors with Word opening attachment from Outlook - Run Time Error 4248 Want to Advertise Here? Solved Errors with Word opening attachment from Outlook - Run Time Error 4248 Posted on 2011-12-21 MS Word 1 Verified Solution 2 Comments 1,880 Views Last Modified: 2012-05-12 Hello all, I have a client who has Windows 7 Pro 64bit and Office 2010. When he tries to open up a Word 2010 doc that is attached to an email he cant open it and gets a VB error "Run-time error 4248 This command is not available because no document is open" This only happes from an attachement and not when opening a file locally or off the local server. Person doesnt know programming or use VB so didnt screw with programming anywhere so any ideas how to fix? Thanks, Jimmy L 0 Question by:forums712 Facebook Twitter LinkedIn Google LVL 4 Best Solution by0x6 Try to disable Word Add-ins one at a time and see if it makes any difference. From Word - MS Word icon - Word optoins - Add-ins Go to Solution 2 Comments LVL 4 Overall: Level 4 MS Word 1 Message Accepted Solution by:0x62011-12-21 Try to disable Word Add-ins one at a time and see if it makes any difference. From Word - MS Word icon - Word optoins - Add-ins 0 Message Author Closing Comment by:forums7122012-01-18 Yes this helped. Thanks!!! 0 Write Comment First Name Please enter a first name Last Name Please enter a last name Email We will never share this with anyone. Comment Submit Your Comment By clicking you are agreeing to Experts Exchange's Terms of Use. Featured Post Looking for New Ways to Advertise? Promoted by Experts Exchange Engage with tech pros in our community with native advertising, as a Vendor Expert, and more. LEARN MORE Suggested Solutions Title # Comments Views Activity Word 2016 Table of Contents - Flows onto Second Page With No Data 17 40 119d Word 2007 formatting 13 39 75d text in table need to be center of the box 4 56 73d Create a publication in Word from a HTML data 14 36 17d Microsoft Word Template for Writing Experts Exchange Articl