PDA

View Full Version : Solved: Trying to add two numbers together, but instead they are stuck next to each other??



kinderjane
11-14-2012, 01:57 AM
I keep getting Run-Time Error 13; Type mismatch or something when I use decimals.

xD + xB = a number.

when xD and xB are integers, I noticed that the two are simply stuck together.

ex. xB = 5
xD = 6

xB + xD = 56

How do I get VBA to stop doing this?? These are the only variables it is doing this for!

Jan Karel Pieterse
11-14-2012, 07:20 AM
Looks like xB and xD are in fact not numbers but strings...