![]() |
|
#1
|
|||
|
|||
![]() You will need to take Graham's suggestion a bit further to set all of the properties you are after: Code:
Sub ScratchMacro() 'A basic Word macro coded by Greg Maxey Dim oCtrl As InlineShape With Selection .MoveRight Unit:=wdCharacter, Count:=2 Set oCtrl = .InlineShapes.AddOLEControl(ClassType:="Forms.TextBox.1", Range:=.Range) .MoveLeft Unit:=wdCharacter, Count:=1 .TypeParagraph End With With oCtrl.OLEFormat.Object .Height = 18 .Width = 200 .MultiLine = True .ScrollBars = 2 End With lbl_Exit: Exit Sub End Sub |
#2
|
||||
|
||||
![]()
I was relying on your old maxim about teaching someone to fish.
![]()
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
![]() |
Tags |
activex, vba |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Add custom doc properties in "Doc properties control" | eazysnatch | Word | 2 | 09-13-2017 08:08 PM |
![]() |
thedr9wningman | Word VBA | 3 | 01-20-2014 05:56 PM |
![]() |
scarymovie | Word VBA | 5 | 05-16-2012 07:05 PM |
How to insert a hyperlink in activex textbox | Joe Patrick | Word VBA | 1 | 10-03-2011 06:03 AM |
ActiveX | Cquinn | Outlook | 0 | 02-08-2006 06:22 PM |