Insert Up Arrow in Cell

andybason

Board Regular
Joined
Jan 7, 2012
Messages
217
Office Version
  1. 2016
Hello

I am trying to write a macro to insert an up arrow into a range of cells whilst retaining the existing text.

I have managed to write something that inserts text but am struggling to insert an arrow. Here's the line:

VBA Code:
If Sheets(cel.Text).Range("I47") <= Sheets(cel.Text).Range("I44") * 1.05 Or Sheets(cel.Text).Range("J47") <= Sheets(cel.Text).Range("J44") * 1.05 Then cel.Value = cel.Value & " U"

Can anyone show me how to tweak the code to do this?

Thank you
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
What type of arrow are you trying to insert
 
Upvote 0
Hello Fluff

It is the half width upwards arrow in this image I would like.

Untitled.png


Thank you
 
Upvote 0
Not sure if this is the same, but it looks close
VBA Code:
cel.Value = cel.Value & " " & ChrW(8593)
 
Upvote 0
F = 15 * 16 * 16 * 16 = 61440
F = 15 * 16 * 16 = 3840
E = 15 * 16 = 224
A = 10 * 1 = 10
61440 + 3840 + 224 + 10 = 65514

In Excel =UNICHAR(65514)
In VBA Chr(65514)

VBA Code:
cel.Value = cel.Value & Chr(65514)
 
Upvote 0
Thanks, my bad. But did you see the character? Exactly as described: Halfwidth Upwards Arrow.

It should be
VBA Code:
ChrW(65514)
 
Upvote 0
In the cell they look almost exactly the same unless you zoom right in, or use a massive font size.
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,028
Messages
6,122,753
Members
449,094
Latest member
dsharae57

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