Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-12-2011, 10:55 AM
cksm4 cksm4 is offline Run-time error 438 Windows XP Run-time error 438 Office 2007
Advanced Beginner
Run-time error 438
 
Join Date: Aug 2010
Posts: 48
cksm4 is on a distinguished road
Default Run-time error 438

The below code was working just fine... then for reasons unknown to me it stopped and now I get run-time error 438, Object doesn't support this property or meathod. Any ideas on what is going on?!

For Each mytemplate In Templates
If mytemplate.Name = "Form.dotm" Then _


mytemplate.BuildingBlockEntries("Template1").Inser t Where:=Selection.Range, RichText:=True
Next
Reply With Quote
  #2  
Old 01-12-2011, 03:02 PM
macropod's Avatar
macropod macropod is offline Run-time error 438 Windows 7 32bit Run-time error 438 Office 2000
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi cksm4,

Is your selection a valid range fo the insertion? And do you really have 'Inser t'?
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 01-12-2011, 03:41 PM
cksm4 cksm4 is offline Run-time error 438 Windows XP Run-time error 438 Office 2007
Advanced Beginner
Run-time error 438
 
Join Date: Aug 2010
Posts: 48
cksm4 is on a distinguished road
Default

Hey Paul

The "insert" is spelled correctly in my command. The space must have happened when I posted it:/

I started a new blank document and re-did the code top to bottom after much time spent trying to figure it out. It works on the new form. No idea what the difference is!
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Word Visual Basic error - run time error 504 crazymorton Word 11 01-13-2012 04:32 AM
time capturing aligahk06 Excel 0 04-18-2010 11:53 PM
Word: The document 'Filename' caused a serious error the last time ... martincruise Word 0 02-25-2010 01:47 AM
Runtime error 5487 - Word cannot complete the save to to file permission error franferns Word 0 11-25-2009 05:35 AM
Receive error cannot open this form because an error occurred in BCM 2007 bornhusker Outlook 0 06-01-2009 10:28 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:58 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft