Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 09-13-2023, 12:53 AM
Guessed's Avatar
Guessed Guessed is offline Change font color of a textbox on a canvas Windows 10 Change font color of a textbox on a canvas Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,176
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

Perhaps this is being over-thought. This works if you have selected a text box inside a Canvas
Code:
Sub Macro1()
  If Selection.ShapeRange.Count > 0 Then
    Selection.WholeStory   'needed if selection is inside textbox rather than being the textbox
    Selection.Font.ColorIndex = wdRed
  End If
End Sub
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
 

Tags
canvas, color



Similar Threads
Thread Thread Starter Forum Replies Last Post
Change font color of a textbox on a canvas VBA to change multiple change drop down font color and make bold bwhitlock Word VBA 1 08-08-2022 12:18 AM
Change font color of a textbox on a canvas Word 16/19 change font and outside border color (same color) eg is red change to pink jec1 Word VBA 2 12-04-2019 11:32 PM
Change font color of a textbox on a canvas VBA change font color to background color donaldadams1951 Word VBA 6 05-31-2018 04:36 PM
Canvas + textbox + group = weird ghost bug? somads Word 0 11-25-2015 01:37 AM
Change font color of a textbox on a canvas Codes for Word Textbox Font Color? tinfanide Word VBA 7 10-23-2012 03:13 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:07 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