Link to home
Start Free TrialLog in
Avatar of amitvjog
amitvjog

asked on

Macro Problem in Using MS WORD - VB

The problems faced by us using Macros in MS WORD 2000 (9.0.3821 SR -1) and Visual Basic 6.0

1-----------------------------------------------------------------------------------------

We are using MS WORD 2000 (9.0.3821 SR -1) for creating forms using MERGEFIELDS And MACROS.
When we open the MS WORD file from VB application in a Internet Browser control, we get a
Warning message from MS WORD.
 Is there any way to trap the return value from the warning message dialogue box.

2-----------------------------------------------------------------------------------------
We are using MS WORD 2000 (9.0.3821 SR -1) for creating forms using MERGEFIELDS and
We are using macros for the combo boxes to
Select the name and putting the respective signature image on the document
We are storing images on the same path as document.

While we develop, RUN and Test the Application using
MS WORD 2000 (9.0.3821 SR -1)
We open the MS WORD file from VB application in a Internet Browser control.

ThisDocument.Path & "\Officer.jpg"
This command gets executed very well on MS WORD 2000 (9.0.3821 SR -1)
On selecting the value from the combo box on the word document

When we try to run the same application with same code on
MS WORD 9.0.2720 OR MS WORD 2002 10.2627.2625
It gives us following error

Runtime error 5152

This is not a valid file name", Try one or more of the following
Check the path to make sure it was typed correctly.
Select a file from the list of files and folder

Please guide us on how to go about the problem,
As we have no control over the version of the MS WORD on client Machine
Is there any resolve available for this one.






3---------------------------------------------------------------------------------------

Using MS WORD 2000 (9.0.3821 SR -1), Once we select the combo and
Required image is put on the document, we try to read the combo values from MS WORD.

We are not able to read the selected values of combo box in the MS WORD File.
Is there any way to read the values selected in the Combo box of MS WORD from Visual Basic


Thank You,


Amit Jog
ASKER CERTIFIED SOLUTION
Avatar of tonsofpcs
tonsofpcs
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of amitvjog
amitvjog

ASKER

Thanks buddy,

It did not help in my cause, Any we have changed our approach now.

Thanks and Regards,

Amit Jog
I answered amitvjog's questions, and although they did not help him, they are the proper answers [see https://www.experts-exchange.com/Community_Support/help.jsp#hi54 -- 'The correct answer to some questions is "you can't do that"'].