View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
Frank Kabel Frank Kabel is offline
external usenet poster
 
Posts: 3,885
Default If its a subtotal Row?

Hi
try changing the line
If Cells(Rowdates2, "A").Value = "Grand Total" Then

to
If InStr(Cells(Rowdates2, "A").Value,"Total") 0 Then

just curious: Why do you have to do it in VBA (usually slower than
using a conditional format)


--
Regards
Frank Kabel
Frankfurt, Germany

"andycharger " schrieb im
Newsbeitrag ...
But I need it to do it in VBA!

Anyone else got any ideas?

Thanks


---
Message posted from http://www.ExcelForum.com/