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 / May 2006

Tip: Looking for answers? Try searching our database.

Programming Style Etiquette

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
George Lee - 08 May 2006 00:49 GMT
I know Word is buggy and the workarounds can be less than elegant at times.
However, I recently ran across a confirmed error in the Find function
(http://support.microsoft.com/default.aspx?scid=kb%3Ben-us%3B29274).
Microsoft's suggested workaround is to declare ranges that need the Find
features to be declared with late binding (Dim myRange as Object).

Since the bug shows up unpredictably on user's computers (many of which I
will have no influence over), does this mean I have to change my programming
style and *always* use late binding forever more?

How do others address issues like this?
Jezebel - 08 May 2006 02:25 GMT
The article recommends late binding only if you are referencing the Find,
Replace, Dictionary, ReadabilityStatistic, or ReadabilityStatistics objects.
There's no need otherwise.

It's also a fairly arcane problem. Excel 5.0 is pre-1997. There can't be
many users who have registered the Excel 5 library *after* installing Word
97 or later.

If you are creating code to run on users' machines, you *do* have influence
over them. Re-registering the Word library is surely no harder than
installing your code?

>I know Word is buggy and the workarounds can be less than elegant at times.
> However, I recently ran across a confirmed error in the Find function
[quoted text clipped - 8 lines]
>
> How do others address issues like this?
 
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.