Results 1 to 10 of 10

Max Func returns Variable name

Threaded View

  1. #1
    Registered User
    Join Date
    10-01-2009
    Location
    Manassas, VA
    MS-Off Ver
    Excel 2007
    Posts
    86

    Max Func returns Variable name

    This sub below should return a value of 5, how do get this to return variable Five instead?

    Sub MaxVar()
        Dim One, Two, Three, Four, Five As Integer
        One = 1
        Two = 2
        Three = 3
        Four = 4
        Five = 5
    
        MsgBox = WorksheetFunction.Max(One, Two, Three, Four, Five)
    End Sub
    Please advice!

    Thank you,

    NTB
    Last edited by NTB; 09-07-2011 at 09:00 AM.

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