Quantcast
Viewing all articles
Browse latest Browse all 7260

RE: Change dimension with VBA, kind of working

[quote user="Josh Kerry"]Is this better?[/quote]

Yes.

[quote user="Josh Kerry"]

                O = Len(oRound)
                IfO = 0 Then
                    oDimstyle.PrimaryAccuracy = msdDimAccuracy0
                Else

[/quote]

A Select statement is clearer when making that choice...

Select Case Len (oRound)
Case 0
  oDimstyle.PrimaryAccuracy = msdDimAccuracy0
Case 1
  oDimstyle.PrimaryAccuracy = msdDimAccuracy1
Case 2
  oDimstyle.PrimaryAccuracy = msdDimAccuracy2
Case 3
  oDimstyle.PrimaryAccuracy = msdDimAccuracy3
End Select

Viewing all articles
Browse latest Browse all 7260

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>