When selecting a Range using Variable1 and Variable2, how can you use Subtotal as a formula?<br>Within Excel, for example, the Formula for a Subtotal of the Sum is =Subtotal(9,A1:A9). How can this be written in Visual Basic Code?<br>I have no problem with using Sum.<br>Total = Range(Variable1,Variable2)<br>mysum = Application.Sum(Total)<br>The same does not work for SubTotal.<br>I would be pleased if sombody could assist.<br>regards,<br>Kevsim