unichar(9679) in VBA variant array variable

BDrew

Board Regular
Joined
Jun 8, 2008
Messages
79
I have a read activesheet.usedRange.value into a Variant array vUR and am walking the rows and columns to extract info based on criteria.

One criteria is: vUR(r, c) <> Unichar(9679)

I know that Unichar(9679) is a bullet character but this syntax to recognise it in a variant array is wrong.

Any ideas welcome.

Brendan
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
I have a read activesheet.usedRange.value into a Variant array vUR and am walking the rows and columns to extract info based on criteria.

One criteria is: vUR(r, c) <> Unichar(9679)

I know that Unichar(9679) is a bullet character but this syntax to recognise it in a variant array is wrong.

Any ideas welcome.

Brendan

vUR(r, c) <> "=Unichar(9679)" compiles but vUR(r, c) at the appropriate array item returns "?"

Perhaps I should just replace all the bullets with something easier to handle

vUR(r, c) = "" avoids the whole issue because it is a bullet or nothing.

So, the real issue now is can this character be addressed in VBA at all?
 
Last edited:
Upvote 0
How are you reading the array?
If you are using vUR = someRange.Value, then vUR does not contain the unicode values in the strings, but the ASCII values.
 
Upvote 0
Hello,

try:

chrW(9679)

regards

(dim By() as byte
by = cells(1,1).value
test for 2x asc())
 
Upvote 0
Thank you mikerickson and Fennek for you valuable inputs.

chrW(9679) works a treat and is certainly ASCII values.

Brendan
 
Upvote 0

Forum statistics

Threads
1,214,592
Messages
6,120,433
Members
448,961
Latest member
nzskater

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