I would like to search “textbox42” for “—“ (two dashes) and replace it with a Wingdings “w”. i am trying to create the little triangle.
I would like to search “textbox42” for “—“ (two dashes) and replace it with a Wingdings “w”. i am trying to create the little triangle.
Have you tried this for insight:
https://support.office.com/en-us/art...2-333dead6ae33
Yes I have and when targeting a text box the find replace option is grayed out. I always try to use the record macro option before asking the Forum for help.
To answer your question:
![]()
Private Sub TextBox42_Change() TextBox42 = Replace(TextBox42, "--", "w") End Sub
But you cannot mix fonts in a textbox. It all has to be the same font. So you cannot insert a Wingdings triangle in the middle of Arial text, for example. (You can do that in a cell, but not a textbox.)
Edit: I assume you are talking about a textbox control, not a textbox shape.
Last edited by 6StringJazzer; 06-08-2015 at 09:45 AM. Reason: in blue
Jeff
| | |·| |·| |·| |·| | |:| | |·| |·|
Read the rules
Use code tags to [code]enclose your code![/code]
bob33, "Find or replace text and numbers on a worksheet" applies only to worksheet cells and not textboxes.
Thank you all for the help. Looks like I need to do this manually then.
Here's an example using characters available in the Arial character set. You just have to pick a font that is available, and then pick one of the first 255 characters.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks