Well, on one level there is nothing wrong with it -- if the code does not
run then that suggests that you may have a reference problem.
On another level, this code makes no sense. You are taking a Unicode string
(all strings in VB are Unicode BSTRs), converting it as if it were a CP_ACP
string to something that can only be called "double-secret Unicode", and
then assigning that meaningless string to a byte array.
References -- andy reference problem can make all code fail, even known VBA
refs.
The other problem is one that cannot be resolved until you explain what you
are trying to do.
--
MichKa [MS]
NLS Collation/Locale/Keyboard Development
Globalization Infrastructure and Font Technologies
This posting is provided "AS IS" with
no warranties, and confers no rights.
"bigbinc" <bi*****@hotmail.com> wrote in message
news:d1**************************@posting.google.c om...
What is wrong with this code,
bStr() As Byte
bStr = StrConv("yeas",vbUnicode)
I can only assume I am missing a tools->reference,
but for string conversion?