#1
|
|||
|
|||
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 |
#2
|
||||
|
||||
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] |
#3
|
|||
|
|||
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! |
|
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 |