[mso] Re: Word 2002: Convert Number To String
- From: Cathy.Evans@xxxxxxxxx
- To: mso@xxxxxxxxxxxxx
- Date: Fri, 15 Oct 2004 14:55:13 -0400
Thanks, excellent troubleshooting suggestions, I will check them out when I
get time. For now I've bumped into the end of several deadlines and I'll
just switch to plan B with the extra data input box for text. Later when I
can get back to this, I'll update the form back to one input box. Thanks
so much to you and Ray for all your help.
Cathy :)
"Green"
<1z@xxxxxxxxxxxxxx> To: <mso@xxxxxxxxxxxxx>
Sent by:
mso-bounce@freelist cc:
s.org
10/15/2004 11:46 AM Subject: [mso] Re: Word 2002:
Convert Number To String
Please respond to
mso
.....
Hi again Cathy,
There is a function called CStr which supposedly converts an
expression to a string. Maybe that would work.
String = CStr(Expression)
It's in the help.
Also, one way to tell if it is a string is that the str functions
stick a space on the front. Do a trim$ after the str. The trim$ also
returns a string and won't work if the argument is a number. As a last
ditch attempt I would try adding an empty string to the front of it
with doodad = "" & string/number. One way to have 650,000.00 is to use
a different notation maybe... SI units would probably use "650
000.00". The space there would make it look like a string to VBA.
Do the numbers have units like meters/miles or something? Perhaps you
could put the units on the end or at the front if it's currency. That
would definately make it a string.
If you deliberately make it a string does the code work... replace the
variable with a text string like "650090". If it still comes out a
number then it can't be the variable but something is doing an extra
conversion somewhere *after* you've converted it to a string.
HTH
Lisa
-----------------------------------------------------------------------------------------------------
The information transmitted is intended only for the person
or entity to which it is addressed and may contain proprietary,
business-confidential and/or privileged material.
If you are not the intended recipient of this message you
are hereby notified that any use, review, retransmission,
dissemination, distribution, reproduction or any action taken
in reliance upon this message is prohibited. If you received
this in error, please contact the sender and delete the
material from any computer. Any views expressed in this message
are those of the individual sender and may not necessarily reflect
the views of the company.
-------------------------------------------------------------------------------------------------------
*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or
MicrosoftOffice@xxxxxxxxxxxxxxxx
To send mail to the group, simply address it to mso@xxxxxxxxxxxxx
To Unsubscribe from this group, send an email to
mso-request@xxxxxxxxxxxxx with the word "unsubscribe" (without the quotes) in
the subject line.
Or, visit the group's homepage and use the dropdown menu. This will also allow
you to change your email settings to digest or vacation (no mail).
http://www.freelists.org/webpage/mso
To be able to use the files section for sharing files with the group, send a
request to mso-moderators@xxxxxxxxxxxxx and you will be sent an invitation with
instructions. Once you are a member of the files group, you can go here to
upload/download files:
http://www.smartgroups.com/vault/msofiles
*************************************************************
Other related posts: