Results 1 to 7 of 7

Thread: How to find a max value in an array?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,446
    Location
    ReDim x(1 To N)
    For k = 1 To N
        x(k) = Application.Max(Application.Transpose(Range("B6").Offset(0, k).Resize(T + 1)))
    Next
    Last edited by Aussiebear; 04-08-2023 at 04:11 PM. Reason: Adjusted the code tags

Posting Permissions

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