I have a worksheet filled with bond data. Two of the columns contain the maturity date and market value respectively of each bond. I want to group the maturities of the bonds by year. I wrote a macro that evaluates the maturity date in the first column and sums the value next to it, cycling through the selection until it gets to the end. When I run it, the correct case is evaluating to "True" but it is still skipping over the expression directly under the case statement. Why is the programming not performing the action under the case that evaluates to true? I have attached my code and a sample worksheet below.
Bookmarks