Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-11-2014, 04:28 PM
macropod's Avatar
macropod macropod is offline RichTextContentControl with text and hyperlinks via Userform possible? Windows 7 64bit RichTextContentControl with text and hyperlinks via Userform possible? Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,515
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default



Quote:
Originally Posted by odin View Post
I created a userform with TextBox(s) that will fill some legacy formfields and a Rich Text Content Control via it's Tag.
Bad move. Content controls and formfields should not be used in the same document. They are not designed to work together and using them that way can cause the documents to misbehave.
Quote:
I'm wanting the hyperlink(s) to be in the same Rich Text Content Control along with normal text that is currently being filled with a userform. The contentcontrol isn't locked so I can currently click anywhere in the contenetcontrol right now and use my other userform to insert the hyperlink(s) inside it.

Is it possible to do all of this within just one userform?
Yes. I can't see what the issue is, unless you haven't figured out how to insert the hyperlink without the user selecting the insertion point, or you want to be able to want the user to be able to select the insertion point while the userform is displayed.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #2  
Old 09-13-2014, 09:23 AM
odin odin is offline RichTextContentControl with text and hyperlinks via Userform possible? Windows 7 64bit RichTextContentControl with text and hyperlinks via Userform possible? Office 2010 64bit
Novice
RichTextContentControl with text and hyperlinks via Userform possible?
 
Join Date: Sep 2014
Posts: 11
odin is on a distinguished road
Default

Quote:
Originally Posted by macropod View Post
Bad move. Content controls and formfields should not be used in the same document. They are not designed to work together and using them that way can cause the documents to misbehave.
Yes. I can't see what the issue is, unless you haven't figured out how to insert the hyperlink without the user selecting the insertion point, or you want to be able to want the user to be able to select the insertion point while the userform is displayed.
I can replace the form fields with content controls if having both in one document can cause it to misbehave. Yes I would like the user to be able to pick in the userform where they want the hyperlink to be placed. I'm thinking that I made need to do an array maybe? When they type the display text for the link, it captures the text box contents, then replaces it and adds the display text along with the original content. And the array would have the display text and address stored. Then when completed it inserts the contents into the content control and replaces the hyperlink display text entries with the formed hyperlink? But I don't know how to grab the cursor location, especially in a text box while in a userform.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to copy userform text and formfield contents to outlook? odin Word VBA 7 09-09-2014 11:56 AM
RichTextContentControl with text and hyperlinks via Userform possible? Is it possible to take an input from a UserForm in one document to a UserForm in a do BoringDavid Word VBA 5 05-09-2014 09:08 AM
cross reference hyperlinks to text box nothing_kills Word 4 11-25-2013 09:21 AM
RichTextContentControl with text and hyperlinks via Userform possible? Inserting Text and Hyperlinks DrDOS Excel 2 03-21-2012 03:53 AM
RichTextContentControl with text and hyperlinks via Userform possible? Checkbox on Userform result in Text in Word Dolfie_twee Word VBA 1 06-22-2010 07:54 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:45 PM.


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