Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 11-30-2017, 05:43 AM
LaurenM LaurenM is offline Insert Rich Text Content Control in specific position, Word 2013 VBA Windows XP Insert Rich Text Content Control in specific position, Word 2013 VBA Office 2010 32bit
Novice
Insert Rich Text Content Control in specific position, Word 2013 VBA
 
Join Date: Nov 2017
Posts: 14
LaurenM is on a distinguished road
Default Insert Rich Text Content Control in specific position, Word 2013 VBA


Is it possible to insert a rich text control control into a particular position in a Word doc template.

I have the following which works fine for a shape, but not the rich text control.

Set shp = ActiveDocument.Shapes.AddTextbox( _
Orientation:=msoTextOrientationHorizontal, _
Left:=10, Top:=5, Width:=500, Height:=41)
shp.TextFrame.TextRange.Text = "Please add company name"
shp.TextFrame.TextRange.Style = oStyle
shp.Line.Visible = msoFalse
shp.RelativeVerticalPosition = wdRelativeVerticalPositionPage
shp.Top = InchesToPoints(1.1)
shp.RelativeHorizontalPosition = wdRelativeHorizontalPositionPage
shp.Left = InchesToPoints(0.27)

Thanks in advance.
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert Rich Text Content Control in specific position, Word 2013 VBA Export Word Drop-Down Content Control to Excel Specific Sheet nolanthomas32 Word VBA 4 09-19-2017 06:25 AM
Insert Rich Text Content Control in specific position, Word 2013 VBA Rich Text Content Control In Template Not Working (Word 2013) irvingdog Word 2 01-26-2017 04:18 PM
Insert Rich Text Content Control in specific position, Word 2013 VBA How do you set rich text in a content control Testor Word VBA 4 07-08-2012 07:55 AM
Insert Rich Text Content Control in specific position, Word 2013 VBA Rich Text Content Control - Allow User Formatting keithacochrane Word 1 05-28-2012 05:06 PM
Templates: automatic text generation from Rich Text content control Chickenmunga Word 0 10-01-2008 11:16 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:23 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft