Thread: Max Function
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Frank Kabel Frank Kabel is offline
external usenet poster
 
Posts: 3,885
Default Max Function

Hi
try
NumberOfSubs = application.worksheetfunction.max(Range("B3:B" &
FinalRow))

--
Regards
Frank Kabel
Frankfurt, Germany


wrote:
I want a variable to be set equal to the max number in my
B column. It isn't working. Here is what I have:

NumberOfSubs= MAX(B3:"B" & FinalRow)

FinalRow is my variable for the last row.