Max Function

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
Hi
try
NumberOfSubs = application.worksheetfunction.max(Range("B3:B" &
FinalRow))
 
You have your " in the wrong place. Try:

application.worksheetfunction.Max(range("b3:B" & x))

Pete
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top