Results 1 to 3 of 3

Use Max Function in VBA

Threaded View

  1. #1
    Valued Forum Contributor
    Join Date
    11-20-2003
    MS-Off Ver
    2010, 2016
    Posts
    1,176

    Use Max Function in VBA

    I am trying to use the following line of code to obtain the highest value in column L and keep getting an error. Tried using "worksheetfunction", "application.worksheetfunction", etc.
    
    newHHNumber = Application.Max(Range("L2:L" & LastRow)) + 1
    Last edited by maacmaac; 01-03-2012 at 09:32 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1