I am going back over code that I wrote while learning VBA. There is a lot of what I call "brute force" code. The code works. Just extremely verbose. I know there are neater and more efficient ways to accomplish the task.
Here is an example:
I want to sum a column of values. The column contains both text and numeric values. I used the following code to accomplish the task:
The result is that Range("B28") holds the sum of the numeric values B19:B25. Cells B20,22,24 are blank.
If every cell in the named ranges contains ND - B28 contains ND.
I have a strong feeling there is a much simpler way to accomplish the task.
As always - thanks to all for looking and helping.
Bookmarks