1. G

    Why is Excel VBA letting me multiply strings?

    I WANT Excel to tell me that I can't multiply a string. What am I missing? Option Explicit Sub why() Dim myVariable As String Debug.Print VarType(myVariable), TypeName(myVariable), myVariable myVariable = 42 'Not "42" myVariable = myVariable * 3 '126 Why? Debug.Print VarType(myVariable)...

Some videos you may like

This Week's Hot Topics