add a star to value in cell via a macro

Ricki

New Member
Joined
Sep 5, 2014
Messages
23
Office Version
  1. 365
Platform
  1. Windows
I am trying to write a macro to add a star, unicode 2605, to add to a value in a cell based on a value in another cell. I know my code is checking for the value, but I can not get the star to print.

I hope someone can help me.
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
How about sharing the code you have so that we can see what you are trying to do.
 
Upvote 0
Try this:
Code:
Sub addstar()
ActiveSheet.Cells(1, 1) = ChrW(2605)
End Sub
 
Upvote 0
Ricki--Still haven't seen your code to evaluate and help you. Please provide a copy. We don't have crystal balls at this site.

This worked for me. Put * in Cell A1

Code:
Option Explicit


Sub addstar()
ActiveSheet.Cells(1, 1) = ChrW(8727)
End Sub

If you prefer this star


Then change 8727 to 9733

<tbody>
</tbody>
 
Last edited:
Upvote 0

Forum statistics

Threads
1,213,520
Messages
6,114,099
Members
448,548
Latest member
harryls

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