Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Call a control from a Macro in Word

Status
Not open for further replies.

mathprof

Programmer
Nov 8, 2000
37
US
I created an ActiveX control with VB6.

My graph has 4 text boxes and 1 command button and a picture box. After I enter numbers in the textboxes I then click on the command button and a graph is drawn in the picturebox.

#1 I go to the control toolbox in Word 2002. I click on the control and it seems that I'm in VBA design mode. I don't want this. I want to be able to immediately enter 4 numbers in the textboxes, click the command button and see the graph.

#2 After I save & close and reopen the document I now see the control 'embedded' and I'm able to get the graph in the picturebox.

#3 What do I need to do to be able to immediately use the control?

#4 How can I code a macro so that the Macro will call the control and embed the graph in the document?

#5 I was thinking about recoding my control so that the graph is saved in a file and then the macro would get file file and put it in my document.

Thanks !

Mathprof
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top