add a star to value in cell via a macro

Ricki

New Member
Joined
Sep 5, 2014
Messages
21
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

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.

alansidman

Well-known Member
Joined
Feb 26, 2007
Messages
7,493
Office Version
  1. 365
Platform
  1. Windows
How about sharing the code you have so that we can see what you are trying to do.
 
Upvote 0

My Aswer Is This

Well-known Member
Joined
Jul 5, 2014
Messages
19,343
Office Version
  1. 2021
Platform
  1. Windows
Try this:
Code:
Sub addstar()
ActiveSheet.Cells(1, 1) = ChrW(2605)
End Sub
 
Upvote 0

alansidman

Well-known Member
Joined
Feb 26, 2007
Messages
7,493
Office Version
  1. 365
Platform
  1. Windows
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,191,485
Messages
5,986,860
Members
440,055
Latest member
CraigTriesHisBest

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
Top