|
-
Apr 4th, 2003, 03:17 AM
#1
Thread Starter
New Member
Urgent- MS Word and ActiveX control problem
Hi All,
This is very urgent.
My problem is as follows:
I want to find out the using vb howmany activex controls are there on a MS word document.
ITs like this :
Sub AddControl()
CommandBars("Control Toolbox").Visible = True
If Selection.StoryType <> wdMainTextStory Then
Selection.HeaderFooter.Shapes.AddOLEControl Anchor:=Selection.Range, _
ClassType:="INK.InkCtrl.1"
Else
ActiveDocument.Shapes.AddOLEControl Anchor:=Selection.Range, _
ClassType:="INK.InkCtrl.1"
End If
CommandBars("Control Toolbox").Visible = False
End Sub
This is how I add a ActiveX Control using vba
I have customized Word using vba so that when I click on a button in the menu a activex Control is loaded onto MS Word
I want to retreive the names and count of activex controls created on the MS Word using vb code.
please somebody help me.
any help is gr8tly appreciated.
thank u in advance
Pivi
-
Apr 4th, 2003, 11:10 AM
#2
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|