Thread: Decimal point
View Single Post
  #9   Report Post  
Posted to microsoft.public.excel.programming
Flemming Jørgensen[_2_] Flemming Jørgensen[_2_] is offline
external usenet poster
 
Posts: 8
Default Decimal point

Hi Rick
Im not very familiar with neither Excel or VB. Actually it is the first time
im trying do something with it. I didnt know that all you sharks didnt use
2007 - so sorry about that.
But I still cant find what you are suggesting.
But I'm in the proces of changing my code so that I use variables instead of
using cells directly.


This:
HVfast = daSheet.Range("F2")
PrintSheet.Range("L24") = HVfast * Kvm / TotalKvm
instead og this
'PrintSheet.Range("L24") = "=" & dasheet.Cells(2, 1) & "*" &
adsheet.Cells(adix, 6) & "/" & adsheet.Cells(40, 6)

I seems to do the job.
But thanks for your help


"Rick Rothstein (MVP - VB)" wrote:

When did you tell us you were using Excel 2007? I think you'll find the
majority of Excel users have not moved up to XL2007, so most of the answers
here lean to the prior versions. For future questions you may post, it would
be a good idea to include that fact that you are using XL2007 so that those
able to answer your question as it relates to that version will be alerted.

As to JLGWhiz's suggestion (which I don't know if it will solve your problem
or not), you will find that option by clicking on the Office Button and then
on Excel Options, select the Advanced item from the left-hand listing an
look to the lower part of the Editing Options section in the dialog area on
the right side. Uncheck the "Use system separators" checkbox and enter the
appropriate separators in the indicated textboxes.

Rick


"Flemming Jørgensen" wrote in
message ...

I have looked for it in excel (2007) - but I couldn't find it.
I seach help for international and found:
MsgBox "The decimal separator is " & _
Application.International(xlDecimalSeparator)

and putting that into the program it showed "," comma
So im lost.

"Rick Rothstein (MVP - VB)" wrote:

JLGWhiz's suggestion is for the Tools item in the Excel worksheet's menu
bar, not the one in the VB editor.

Rick


"Flemming Jørgensen" wrote
in
message ...
Foe some reason I dont have option "International" on that menu.
I'm using VB 6.5 - i dont know if thats the reason.
But thanks anyway


"JLGWhiz" wrote:

Hi Flemming, you can set your system by clicking
ToolsOptionInternational
and then choose the type of separator you want to use. However, when
you
interface with other systems, you will need to know what they are
using
or it
could cause problems between the two.

"Flemming Jørgensen" wrote:

Hi

I have a code like this
PrintSheet.Range("L24") = "=" & dasheet.Cells(2, 1) & "*" &
adsheet.Cells(adix, 6) & "/" & adsheet.Cells(40, 6)

and when the user put in like 500,35 in dasheet.Cells(2,1) it
creates
an
runtime error. The problem dosn't occur when they ttype in 500.35.

But im danish - and in denmark we use "," (comma) as decimal point.

How can I change VB to use "," as decimail point instead of "."

Thanks for any help