[mso] Re: Word 2002: Convert Number To String
- From: Cathy.Evans@xxxxxxxxx
- To: mso@xxxxxxxxxxxxx
- Date: Fri, 15 Oct 2004 11:01:57 -0400
Thanks Lisa. A straw can be good . . . there is progress, 650,000.00
changed to 650000.00, it removed the comma, but still kept it at numerical,
so I know at least it is finding the right instance of the bookmark, just
whether I have added the Str$ in the right way. Here is what I changed:
Dim strPrice As String
strPrice = Str$(tbxPrice)
UpdateBookmarkProc "bkPrice1", strPrice
I have also been searching the web and find some public functions that
people put in their code, and am testing to see if adding one of them will
be the missing part. I'm not giving up yet! Thank you again, Cathy
"Green"
<1z@xxxxxxxxxxxxxx> To: <mso@xxxxxxxxxxxxx>
Sent by:
mso-bounce@freelist cc:
s.org
10/15/2004 10:10 AM Subject: [mso] Re: Word 2002:
Convert Number To String
Please respond to
mso
.....
Cathy,
I'm not sure if it's relevant but the str command returns a variant
and variants are like chameleons in that they are still variants when
they are strings!! Try Str$ instead. This should return a "real"
string.
Again.. just clutching straws really.
Lisa
> Thanks Ray. I tried adding that, and it's still not
> converting the numbers
> to string. I must have some other problem going on that
> I'm missing cause
> it should work. Is there a way to 'format' a Word text box
> to currency or
> number like in Access? I'm not finding anything in the
> help menu about it,
> maybe that's where I'm going wrong, to not have my text box
> set up right.
> Here's the whole statement I'm using:
>
> Dim strPrice As String
> strPrice = Str(tbxPrice)
> UpdateBookmarkProc "bkPrice1", strPrice
>
> I will work with it a little longer, but if I can't figure
> out what I've
> got wrong, I'll go to plan B and add a extra box for input
> of the string
> value, cause my deadline is Monday.
>
> Thanks for all your help, it's helping me to understand a
> little better,
> too.
> Cathy
-----------------------------------------------------------------------------------------------------
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: