Word VBA 6.0 Vs VBA 6.3

K

Kumar

I am currently running a macro in Word 2000 and VBA 6.0 which works fine. But
when I try
to run it in Word 2000 with VBA 6.3 on a different computer I am getting an
error.

Error:
Compile error - Method or data member not found

On Line:
Verify.txtResult.Text

Verify uses a text control from RICHTX32.OCX.

It is very peculiar that it deos not work on VBA 6.3. Any idea why this
happens and any resolutions???
 
J

Jay Freedman

This behavior is caused by new security checking. See
http://support.microsoft.com/?kbid=838010. Note that the solution discussed
in the Resolution section requires Visual Basic (VB), the stand-alone
programming environment, and not Visual Basic for Applications (VBA) built
into Office applications.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
K

Kumar

Mr.Freedman,

Thank you for throwing up some light on this issue. My solution is to use
this control on Word Template which has this Macro embedded. I cannot give my
users the VB Stand alone environment.

Is there any way in which i can modify the security settings to accept this
RichTextBox Control.

Thanks again for helping me out.

Regds,
Kumar
 
J

Jay Freedman

There really is not any way to modify the security settings -- nor should
there be, because you should not expose your users to malicious exploits
that could use the control to corrupt their computers.

You don't have to give the users stand-alone VB. You need one developer to
have VB to create a "wrapper" for the control and program the wrapper to
validate the input, as the article describes. The alternative is to find or
purchase a different rich text control from some other source, one that
correctly implements security. I suggest searching in Google or the
advertising in any magazine intended for VB programmers.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
K

Kumar

Thank You very Much.

Jay Freedman said:
There really is not any way to modify the security settings -- nor should
there be, because you should not expose your users to malicious exploits
that could use the control to corrupt their computers.

You don't have to give the users stand-alone VB. You need one developer to
have VB to create a "wrapper" for the control and program the wrapper to
validate the input, as the article describes. The alternative is to find or
purchase a different rich text control from some other source, one that
correctly implements security. I suggest searching in Google or the
advertising in any magazine intended for VB programmers.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top