Formating cells in VBA

Fibo

New Member
Joined
Oct 22, 2023
Messages
16
Office Version
  1. 365
Platform
  1. Windows
Hello,
I am trying to format a cell in vba using unicode.
The end result that the cell value should remain a figure, and its format should have a colored unicode charater.
The unicode number and its color should be defined by VBA.
The problem I have is the bellow doesn't work.
Range("E55").NumberFormat = "[Red]unichar(10004)#,###"
The vba editor wont paste
✐​
either.
Anoyone has an idea?
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Hi

VBA Code:
Range("E55").NumberFormat = "[Red]" & WorksheetFunction.Unichar(10004) & "#,###"
 
Upvote 1
Solution
Hello,
I am trying to format a cell in vba using.
The format should use a unicode character, like a check mark for example.
The unicode number and its color should be defined by VBA.
The problem I have is taht the code bellow doesn't work.
Range("E55").NumberFormat = "[Red]unichar(10004)#,###"
The vba editor wont paste
either.
Anyone has an idea?
Also I posted this question before I had corrected the typos by accident.
Is there a way to edit my question instead of posting it again?
Hi

VBA Code:
Range("E55").NumberFormat = "[Red]" & WorksheetFunction.Unichar(10004) & "#,###"
Perfect.
Of course.
Thank you.
 
Upvote 0

Forum statistics

Threads
1,215,327
Messages
6,124,290
Members
449,149
Latest member
mwdbActuary

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