Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / March 2007

Tip: Looking for answers? Try searching our database.

Word 2003 VBA error

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jay Bukstein - 06 Mar 2007 20:17 GMT
I receive the following error message 'Run-time error 4605; This command is
not available.

I built this template 3 months back and works just fine then, now that the
user has request a new table column added, I add the new column to an exists
table and saved the *.dot.

I run it and get this error.  I'm guessing some MS patch that was applied
made this not function anymore.  If I open and save the template in office
2007 as a template with embedded macros, it works again.  My plans are not to
deploy the new office until later this year, so any ideas for my fix.

Thanks,
Jay Bukstein
Jay Bukstein - 06 Mar 2007 20:30 GMT
Additional Piece,

The line of code that is erroring is 'Set tbl2 =
ActiveDocument.Tables.Add(tbl.Cell(rowCounter, 1).Range, 1, 5)

The preceeding line is set tbl =
ActiveDocument.Tables.Add(ActiveDocument.Bookmarks("wdStart").Range, 2, 1)



> I receive the following error message 'Run-time error 4605; This command is
> not available.
[quoted text clipped - 10 lines]
> Thanks,
> Jay Bukstein
Ed - 07 Mar 2007 19:14 GMT
Hi Jay,

Those lines of code seemed to work for me (using Word 2003).

When I have seen 4605 errors in the past they usually had a bit more
information after the "This command is not available" part and it was usually
that extra information that gave a clue as to what the problem was. (E.g.
"This command is not available because the object refers to a protected area
of the document" or whatever.)

If that is the case with your problem, can you post the remainder of the
message and maybe also more of the code and then someone might be able to
advise as to what's going on?

Cheers.

Ed

> Additional Piece,
>
[quoted text clipped - 20 lines]
> > Thanks,
> > Jay Bukstein
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.