<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/decimal-separator-or/m-p/322051#M93290</link>
    <description>Excuse me, that's Mid$ function.&lt;BR /&gt;
&lt;BR /&gt;
Minkwitz Design wrote:&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; You'll have to save the number to a variable and scan through it in a loop using&lt;BR /&gt;
&amp;gt; the Len and Mud$ functions to pinpoint and replace the seperator. The clip of&lt;BR /&gt;
&amp;gt; code below does exactly what your looking to do except it's searching for the&lt;BR /&gt;
&amp;gt; backslash in a pathname.&lt;BR /&gt;
&amp;gt; -Josh</description>
    <pubDate>Fri, 19 May 2000 21:53:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2000-05-19T21:53:35Z</dc:date>
    <item>
      <title>Decimal Separator (, or .?)</title>
      <link>https://forums.autodesk.com/t5/vba-forum/decimal-separator-or/m-p/322049#M93288</link>
      <description>I'm working with a VBA macro that passes a number from visual lisp to Excel.&lt;BR /&gt;
My problem is that, in brazil, we use a comma (,) as separator (one million&lt;BR /&gt;
is 1000000,00).&lt;BR /&gt;
&lt;BR /&gt;
So, every time that I pass a numer to excel it looses the decimal places.&lt;BR /&gt;
&lt;BR /&gt;
Any body knows a way to change the decimal separator in VBA?&lt;BR /&gt;
&lt;BR /&gt;
Thanks!</description>
      <pubDate>Fri, 19 May 2000 20:34:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/decimal-separator-or/m-p/322049#M93288</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-05-19T20:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: Decimal Separator (, or .?)</title>
      <link>https://forums.autodesk.com/t5/vba-forum/decimal-separator-or/m-p/322050#M93289</link>
      <description>You'll have to save the number to a variable and scan through it in a loop using&lt;BR /&gt;
the Len and Mud$ functions to pinpoint and replace the seperator. The clip of&lt;BR /&gt;
code below does exactly what your looking to do except it's searching for the&lt;BR /&gt;
backslash in a pathname.&lt;BR /&gt;
-Josh&lt;BR /&gt;
&lt;BR /&gt;
 Dim StringCount As Integer&lt;BR /&gt;
 Dim CopyCount As Integer&lt;BR /&gt;
 Dim testSlash As String&lt;BR /&gt;
 Dim DirectoryInfo As String&lt;BR /&gt;
 If Len(ThisDrawing.Name) &amp;gt; 7 Then&lt;BR /&gt;
     If Mid$(ThisDrawing.Name, 1, 7) = "Drawing" Then&lt;BR /&gt;
         MsgBox "You Must First Save the Drawing to a Name Using the Saveas&lt;BR /&gt;
Command Before You Can Use Save to Both.", vbCritical&lt;BR /&gt;
         ThisDrawing.SendCommand "saveas "&lt;BR /&gt;
         End&lt;BR /&gt;
     End If&lt;BR /&gt;
 End If&lt;BR /&gt;
 StringCount = Len(ThisDrawing.FullName) - 1&lt;BR /&gt;
 AlternatePathName = "T" &amp;amp; Mid$(ThisDrawing.FullName, 2, StringCount)&lt;BR /&gt;
 AlternatePath = "T" &amp;amp; Mid$(ThisDrawing.Path, 2, Len(ThisDrawing.Path) - 1)&lt;BR /&gt;
 ThisDrawing.Save&lt;BR /&gt;
 If Dir(AlternatePath, vbDirectory) = "" Then&lt;BR /&gt;
     NewDir = "T:\"&lt;BR /&gt;
     DirectoryInfo = ThisDrawing.Path&lt;BR /&gt;
     CopyCount = 4&lt;BR /&gt;
     Do While CopyCount &amp;lt; Len(DirectoryInfo)&lt;BR /&gt;
         testSlash = Mid$(DirectoryInfo, CopyCount, 1)&lt;BR /&gt;
         If testSlash &amp;lt;&amp;gt; "\" Then&lt;BR /&gt;
             NewDir = NewDir &amp;amp; testSlash&lt;BR /&gt;
         ElseIf testSlash = "\" Then&lt;BR /&gt;
             If Dir(NewDir, vbDirectory) = "" Then MkDir NewDir&lt;BR /&gt;
                 NewDir = NewDir &amp;amp; testSlash&lt;BR /&gt;
         End If&lt;BR /&gt;
         CopyCount = CopyCount + 1&lt;BR /&gt;
     Loop&lt;BR /&gt;
     MkDir AlternatePath&lt;BR /&gt;
End If&lt;BR /&gt;
&lt;BR /&gt;
"André Dantas Rocha" wrote:&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; I'm working with a VBA macro that passes a number from visual lisp to Excel.&lt;BR /&gt;
&amp;gt; My problem is that, in brazil, we use a comma (,) as separator (one million&lt;BR /&gt;
&amp;gt; is 1000000,00).&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; So, every time that I pass a numer to excel it looses the decimal places.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Any body knows a way to change the decimal separator in VBA?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Thanks!</description>
      <pubDate>Fri, 19 May 2000 21:51:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/decimal-separator-or/m-p/322050#M93289</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-05-19T21:51:36Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/decimal-separator-or/m-p/322051#M93290</link>
      <description>Excuse me, that's Mid$ function.&lt;BR /&gt;
&lt;BR /&gt;
Minkwitz Design wrote:&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; You'll have to save the number to a variable and scan through it in a loop using&lt;BR /&gt;
&amp;gt; the Len and Mud$ functions to pinpoint and replace the seperator. The clip of&lt;BR /&gt;
&amp;gt; code below does exactly what your looking to do except it's searching for the&lt;BR /&gt;
&amp;gt; backslash in a pathname.&lt;BR /&gt;
&amp;gt; -Josh</description>
      <pubDate>Fri, 19 May 2000 21:53:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/decimal-separator-or/m-p/322051#M93290</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-05-19T21:53:35Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/decimal-separator-or/m-p/322052#M93291</link>
      <description>Thank you very much,&lt;BR /&gt;
&lt;BR /&gt;
I'll try it and let you know...</description>
      <pubDate>Mon, 22 May 2000 14:24:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/decimal-separator-or/m-p/322052#M93291</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-05-22T14:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: Decimal Separator (, or .?)</title>
      <link>https://forums.autodesk.com/t5/vba-forum/decimal-separator-or/m-p/322053#M93292</link>
      <description>André,&lt;BR /&gt;
&lt;BR /&gt;
Assuming your decimal separator is set to a coma, these two expressions&lt;BR /&gt;
will return the same value:&lt;BR /&gt;
&lt;BR /&gt;
Private Sub Command1_Click()&lt;BR /&gt;
  MsgBox "Converting with CDbl: " &amp;amp; CStr(1.2 + CDbl("5,2")) &amp;amp; _&lt;BR /&gt;
  vbLf &amp;amp; "Converting with Val   : " &amp;amp; CStr(1.2 + Val("5.2"))&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
Denis&lt;BR /&gt;
&lt;BR /&gt;
"André Dantas Rocha" &lt;ADR&gt; a écrit dans le message news:&lt;BR /&gt;
ef0b1bd.-1@WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt; I'm working with a VBA macro that passes a number from visual lisp to&lt;BR /&gt;
Excel.&lt;BR /&gt;
&amp;gt; My problem is that, in brazil, we use a comma (,) as separator (one&lt;BR /&gt;
million&lt;BR /&gt;
&amp;gt; is 1000000,00).&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; So, every time that I pass a numer to excel it looses the decimal places.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Any body knows a way to change the decimal separator in VBA?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Thanks!&lt;BR /&gt;
&amp;gt;&lt;/ADR&gt;</description>
      <pubDate>Tue, 22 Jul 2003 22:25:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/decimal-separator-or/m-p/322053#M93292</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-07-22T22:25:53Z</dc:date>
    </item>
  </channel>
</rss>

