Article ID: 167724
Article Last Modified on 10/22/2000
ActiveSheet.Shapes.AddShape(msoShapeRectangle, 27.75, 6#, _
223#, 118#).Select
115#When you record a Visual Basic for Applications macro, Microsoft Excel may automatically set recorded numbers that are whole numbers to the Double type by adding a number sign after each number. This behavior does not affect the functionality of the macro in any way.
Sub Test()
Dim X As Integer
X = 3.0 + 5.0
End Sub
When you enter the third line of code, the values in the line are converted
into the Double type:
X = 3# + 5#This is an automatic feature in Visual Basic for Applications. If you enter the following line of code instead
X = 3 + 5the values are not converted into the Double type, because the values do not end in ".0."
Additional query words: XL97 single variant integer long pound symbol
Keywords: kbprogramming kbprb kbcode KB167724