In: Computer Science
Record a macro that sets Cell B5 to a format of Bold and sets the Number format to be in $. Copy the VBA code for that macro and paste it.
Code
VBA macro
Sub Test()
Worksheets("Sheet1").Range("B5").Font.Bold = True
Worksheets("Sheet1").Range("B5").NumberFormat = "
$#,##0.00;[Red]$#,##0.00"
End Sub
Output
In starting sheet is
when you run the macro
final output is
If you have any query regarding the code please ask me in the comment i am here for help you. Please do not direct thumbs down just ask if you have any query. And if you like my work then please appreciates with up vote. Thank You.