Removing bold only from part of the text in textboxes in VBA

Sleepyquark

New Member
Joined
Mar 2, 2020
Messages
2
Office Version
  1. 2016
Platform
  1. Windows
I need to remove bold only from the numbers (which are formatted as text) in textboxes throwout the whole Excel Workbook.
My idea is to remove all bold and then to apply bold back to only words "Apples", "Oranges" and "Grapes".
Does anyone know a script for that? Sorry, I'm not that familiar with VBA.
Thanks a lot if anyone can help.

1678489599491.png
 

Attachments

  • 1678489501548.png
    1678489501548.png
    5.9 KB · Views: 3

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
No script on file, but should be doable, although having to do it on every sheet for the entire sheet adds some work. As always, there is always information missing that a coder really could use to narrow it down. Things like,
- there is/isn't always 2 numeric characters at the end
- there is/isn't always a line break
- it is always the whole sheet, so don't worry about header rows - or something else
- anything I haven't thought of that will likely raise its ugly head
 
Upvote 0

Forum statistics

Threads
1,223,902
Messages
6,175,278
Members
452,629
Latest member
SahilPolekar

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top