VBA icon

Testing UBound and LBound

After my recent post about testing Debug.Print, I thought I'd continue the trend by testing something else I take for granted.

Continue Reading: Testing UBound and LBound »

VBA icon

Get Word Count in VBA

word count

In VBA Function To Calculate Number of Words in a String there's a function to count the number of words in a given string. I think it could use some tightening up.

Continue Reading: Get Word Count in VBA »

VBA icon

Finding values in an array without looping

If you need to find a value in an array, you might be inclined to loop through the array and using a function like Instr to match each value in the array against the selected value to see if it exists.

Until recently, I would have done the same thing (breaking it out into its own function, of course). But recently I discovered another way to do it that doesn't require looping, and thought I'd share.

Continue Reading: Finding values in an array without looping »

Site last updated: February 8, 2012