Home > Time Error > Visual Basic Runtime Error 4248

Visual Basic Runtime Error 4248

Contents

The system returned: (22) Invalid argument The remote host or network may be down. It worked fine while everyone was using Office 2007. Not the answer you're looking for? This shows that the value of Application.ActiveProtectedViewWindow is Nothing when a document is not in Protected View. http://gmailpush.com/time-error/visual-basic-runtime-error-4248-word.html

How do the formfields at the bottom get updated? Especially Option Explicit. Select Case ActiveDocument.FormFields("text65").Result Case "Inpatient" ActiveDocument.FormFields("Check3").CheckBox.Value = True Case "ER/Outpatient" ActiveDocument.FormFields("Check4").CheckBox.Value = True Case "DOA" ActiveDocument.FormFields("Check5").CheckBox.Value = True Case "Nursing Home" ActiveDocument.FormFields("Check6").CheckBox.Value = True Case "Hospice" ActiveDocument.FormFields("Check7").CheckBox.Value = True Case "Residence" Reply With Quote 04-11-2012,11:41 AM #20 Tinbendr View Profile View Forum Posts View Blog Entries Visit Homepage View Articles VBAX Expert Joined Jun 2005 Location North Central Mississippi (The Pines) Posts https://support.microsoft.com/en-us/kb/813983

Runtime Error 4248 This Command Is Not Available Because No Document Is Open

Reply With Quote 04-11-2012,11:12 AM #16 Tinbendr View Profile View Forum Posts View Blog Entries Visit Homepage View Articles VBAX Expert Joined Jun 2005 Location North Central Mississippi (The Pines) Posts Dim wdApp ' Create the word object Set wdApp = Server.CreateObject("Word.Application") if Err.number <> 0 Then nErr = 1 szErr = " Error creating the Word Object " & Err.Description Exit If statement executes, testing if text65 = Other (Specify) If you use Select Case, what happens if text65 = Inpatient? Why is the FBI making such a big deal out Hillary Clinton's private email server?

It will also help if you posted your entire code. Forum Rules | Contact Forum Editor | Report a Post Error # 4248 was generated by Microsoft Word. Resume[/COLOR] [COLOR=#000000]End If[/COLOR] [COLOR=#000000]End Sub[/COLOR] [COLOR=#000000]Sub CountHiddenDocs() ' This macro opens an existing document as hidden ' then makes the hidden document visible. Run Time Error 4605 Word 2010 Set Doc1 = Documents.Open("\MyDoc.Doc", Visible:=False)[/COLOR] [COLOR=#000000] ' Reset the document object variable to make visible the ' hidden document. ' ' NOTE: The following command line will NOT open a '

The formfield is NAMED somethng meaningful. Given that ice is less dense than water, why doesn't it sit completely atop water (rather than slightly submerged)? There is no error 4248. Covered by US Patent.

The name is meaningless, it does not give any information about where it is, nor any meaningful/logical connection to Check1 (which is where exactly). Runtime Error 4248 Word 2007 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 There are many other documents like it but I did not code it. Error code 4248 Westconn1, Thanks for the reply but your code didn't solve the problem.

Runtime Error 4248 Word 2013

I do not even know - and I have been looking for 5 minutes -which formfield is text64. All times are GMT -5. Runtime Error 4248 This Command Is Not Available Because No Document Is Open It opens a Word Document from and Excel Worksheet and merges info from Excel to Word. Run Time Error 4605 Word 2013 Person doesnt know programming or use VB so didnt screw with programming anywhere so any ideas how to fix?

I will ask again...please describe the exact circumstances. this contact form Code: Sub Soundsoak_CreateQuote1() 'Collect the Needed Information Dim myProject, myCompanyInfoL1, myCompanyInfoL2, myCompanyInfoL3, myQuoteNumber As String Dim mycustomer, mydate As String, myuser As String, myDate1 As String, myDate2 As String, myDate3 As Why is the size of my email about a third bigger than the size of its attached files? Granted, but that wasn't the point of the question, which was to establish that Word 2010 correctly creates a document from the template. Run Time Error 5941 The Requested Member Of The Collection Does Not Exist

These cases pass to the form as an object in xml, a value that is retained in an dynamic web application.) Honestly I could not see any examples of this on 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 Yet Another, Another Prime Generator Is there an English idiom for provocative titles, something like "yellow title"? have a peek here Reason: Added code tags & formatting #6 02-16-2014, 03:03 PM macropod Windows 7 32bit Office 2010 32bit Administrator Join Date: Dec 2010 Location: Canberra, Australia Posts: 14,316 Hi

I was able to solve the problem by creating Desktop folder in C:\Windows\SysWOW64\config\systemprofile\ and C:\Windows\System32\config\systemprofile\ Reply With Quote Quick Navigation Office Development Top Site Areas Settings Private Messages Subscriptions Who's Online Run Time Error 4605 Visual Basic Dozens of earthworms came on my terrace and died there Why does the Developer Console show different extensions like "apxc" and "apxt"? 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

How much more than my mortgage should I charge for rent?

From Word - MS Word icon - Word optoins - Add-ins 0 Message Author Closing Comment by:forums7122012-01-18 Yes this helped. Err.Clear[/COLOR] [COLOR=#000000] 'Execute the code that caused the error. Reply With Quote 04-11-2012,11:32 AM #18 Tinbendr View Profile View Forum Posts View Blog Entries Visit Homepage View Articles VBAX Expert Joined Jun 2005 Location North Central Mississippi (The Pines) Posts Run-time Error '5941' Application-defined Or Object-defined Error Now the code is try to access something that isn't there.

To start viewing messages, select the forum that you want to visit from the selection below. Share a link to this question via email, Google+, Twitter, or Facebook. How do really talented people in academia think about people who are less capable than them? Check This Out Using "están" vs "estás" when refering to "you" Puzzler - which spacecraft(s) (actually) incorporated wooden structural elements?

Page 1 of 2 1 2 Last Jump to page: Results 1 to 20 of 21 Thread: Run-time error '4248': this command is not available because no document is open Thread Will I encounter any problems as a recognizable Jew in India? 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. In other words, I have NO easy way of verifying that the value of text64 is in fact making the correct value in the checkbox - as I do not have

Will I encounter any problems as a recognizable Jew in India? Browse other questions tagged ms-word word-vba or ask your own question. Results 1 to 4 of 4 Thread: [RESOLVED] This command is not available because no document is open. Documents.Add[/COLOR] [COLOR=#000000] 'Clear the error.

I keep getting this error on Windows XP SP3 behavior is like this: 4248 referenced in title block above. How can I set the "ActiveDocument" properties back again after the word is change from "protected view mode" and change to "Compatibility Mode" ???? If statement executes, testing if text65 = Nursing Home 5. 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,911 Views Last Modified: 2012-05-12 Hello all, I

Run-time error '4248': this command is not available because no document is open Explicitly named controls (the formfields) means just that. What grid should I use designing UI for the desktop app? But it is failed when the document is opened in protected mode. Join our community for more solutions or to ask questions.

Privacy Policy Site Map Support Terms of Use Register Help Remember Me? Portal Forum FAQ Calendar Forum Actions Mark Forums Read Quick Links View Site Leaders Knowledgebase Articles Blogs Resources Surface Studio vs iMac 5K comparison review: Apple and Microsoft all-in-one PCs battle it out 1995-2015: How technology has changed the world in 20 years The Partners’ abstract redesign of the Why does WordPress use outdated jQuery v1.12.4? After it executes this, it also disappears from view." What this got to do with your original posted question?

If I click "End" on the error window, the macros ran.