Re: Command Button Problems

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi =?Utf-8?B?Q0lPUE1P?=,

You could try asking this question in the following groups:

Word.vba.general
office.developer.officedev.other

and a group that deals with scripting for Internet Explorer. I'm not familiar with IE
from the automation side of things, but this sounds as if this library may have been
removed. Possibly for security reasons.

Not sure where this question fits, but hopefully someone can help me.

I recently upgraded to MS IE 7 and have been having troubles with command
buttons in documents I create that allow the user to connect to a webpage.

I use to follow these steps:
How to Create Buttons:
1. From the â??Control Toolboxâ?? toolbar click the button icon to insert a
button in the document.
2. Click the â??Design Modeâ?? Button so that black squares that appear on the
button:
3. Double click on the buttons to open the â??Microsoft Visual Basic Windowâ??
4. Select Tool, References, and ensure that â??Microsoft Internet Controlsâ?? is
selected, place a checkbox beside it, if necessary.
5. Between the â??Private Subâ?? and â??End Subâ?? lines, insert the following text:
Dim IE As SHDocVw.InternetExplorer
Set IE = CreateObject("Internetexplorer.application")
IE.Visible = True
IE.Navigate "Website goes here"

However, I am now unable to find â??Microsoft Internet Controlsâ?? in the list
of references, thus my buttons donâ??t work on my end or the users. I donâ??t
know much the actual creation of the buttons or the code that goes into them
I just follow the steps and it used to work. When I run a debug on it gets
stuck at (â??Internetexplorer.applicationâ??)


Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply in the
newsgroup and not by e-mail :-)

.


Quantcast