Getobject Word.application Error
Contents |
360 games PC games runtime error 429 activex component can't create object Windows games Windows phone games Entertainment All Entertainment activex component can t create object excel application Movies & TV Music Business & Education Business Students & educators
Runtime Error 429 Vb6
Developers Sale Sale Find a store Gift cards Products Software & services Windows Office Free downloads & security Internet
Error 429 Activex Windows 7
Explorer Microsoft Edge Skype OneNote OneDrive Microsoft Health MSN Bing Microsoft Groove Microsoft Movies & TV Devices & Xbox All Microsoft devices Microsoft Surface All Windows PCs & tablets PC accessories Xbox & games Microsoft Lumia All runtime error 429 activex component can't create object windows xp Windows phones Microsoft HoloLens For business Cloud Platform Microsoft Azure Microsoft Dynamics Windows for business Office for business Skype for business Surface for business Enterprise solutions Small business solutions Find a solutions provider Volume Licensing For developers & IT pros Develop Windows apps Microsoft Azure MSDN TechNet Visual Studio For students & educators Office for students OneNote in classroom Shop PCs & tablets perfect for students Microsoft in Education Support Sign in Cart Cart Javascript is disabled Please enable javascript and refresh the page Cookies are disabled Please enable cookies and refresh the page CV: {{ getCv() }} English (United States) Terms of use Privacy & cookies Trademarks © 2016 Microsoft
360 games PC games
Runtime Error 429 Activex Component Can't Create Object Windows 10
Windows games Windows phone games Entertainment All Entertainment runtime error 429 activex component can't create object windows 8 Movies & TV Music Business & Education Business Students & educators getobject( excel.application ) not working Developers Sale Sale Find a store Gift cards Products Software & services Windows Office Free downloads & security Internet https://support.microsoft.com/en-us/kb/238610 Explorer Microsoft Edge Skype OneNote OneDrive Microsoft Health MSN Bing Microsoft Groove Microsoft Movies & TV Devices & Xbox All Microsoft devices Microsoft Surface All Windows PCs & tablets PC accessories Xbox & games Microsoft Lumia All https://support.microsoft.com/en-us/kb/828550 Windows phones Microsoft HoloLens For business Cloud Platform Microsoft Azure Microsoft Dynamics Windows for business Office for business Skype for business Surface for business Enterprise solutions Small business solutions Find a solutions provider Volume Licensing For developers & IT pros Develop Windows apps Microsoft Azure MSDN TechNet Visual Studio For students & educators Office for students OneNote in classroom Shop PCs & tablets perfect for students Microsoft in Education Support Sign in Cart Cart Javascript is disabled Please enable javascript and refresh the page Cookies are disabled Please enable cookies and refresh the page CV: {{ getCv() }} English (United States) Terms of use Privacy & cookies Trademarks © 2016 Microsoft
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about http://stackoverflow.com/questions/19775697/getting-instances-of-word-and-saving-documents hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Getting instances of Word and saving documents up vote 1 down vote favorite I'm writing a macro in VBA that creates a word document using Sub WriteDocument() wordapp = CreateObject("word.Application") error 429 letter = wordapp.Documents.Add TypeText() wordapp.Visible = True End Sub Originally I'd tested this to satisfaction by running the macro and then closing the word document without saving it. Now that I'm actually saving the documents, the macro is taking longer and longer to run each time. I think the issue has to do with WINWORD.EXE and how it behaves if the document is saved or not. I tried using If wordapp Is Nothing Then Set wordapp = CreateObject("word.Application") runtime error 429 End If But now I'm getting errors if I run the macro repeatedly and without saving. Can someone explain the issue to me and help me resolve it? Our company recently switched from Office 07 - Office 10. Would this affect anything? I noticed that new documents/spreadsheets always open in existing instances of Word/Excel instead of a new one. vba ms-word share|improve this question edited Nov 4 '13 at 20:20 Jean-Francois Corbett 23.9k1678113 asked Nov 4 '13 at 19:41 user2437713 187 add a comment| 1 Answer 1 active oldest votes up vote 1 down vote accepted Are you writing in Word's own VBA editor? Then you don't need to create an explicit reference to a Word Application instance. Just use the default application instance, i.e. the one you're currently writing code in: Dim doc As Document Set doc = Documents.Add ' don't need explicit reference to wordapp Or are you calling Word from some other Office application e.g. Excel? Then ok, you do need an explicit reference to an instance of Word. However you don't need to create a new instance, and in fact you may not want to do that, because eventually you could have many running instances piling up. Instead, you can try getting an existing instance first: Dim doc As Object Dim wordapp As Object On Error Resume Next Set wordapp = GetObject(, "Word.Application") If wordapp Is Nothing