Hi. I do not come from a programming background, and I'm finding VBA very difficult to write.
I have created some code to "count" the number of text objects that aren't empty and write the result to another text object. My code always writes out 3. What am I doing wrong here?
If Line2.Text = "" and Line3.Text = "" then
NumLines.Text = "1"
elseif Line3.Text = "" then
NumLines.Text = "2"
else
NumLines.Text = "3"
End If
Also, I haven't been able to Dim Integers and perform simple math on them. If someone can show me how that works, then I might be able to accomplish this more easily. Any advice is greatly appreciated! Please help!