View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Tom Ogilvy Tom Ogilvy is offline
external usenet poster
 
Posts: 27,285
Default Add cells with a specific format?

for each cell in Range("A1:A10")
if cell.Numberformat = "#,##0.00 then
tot = tot + cell.Value
end if
Next

Range("B11").Value = tot

--
Regards,
Tom Ogilvy




"qwery" wrote in message
...
how can I add cells into another cell only if the format is right in the

cell
I want to add