Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 48
Default What is the VBA equivilate to Excel worksheet function MAX?

I am trying to do the same thing as =MAX(I2,M2,Q2) would do.
How can I do this? Can I add more values to compare?

Thanks,
Phil


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default What is the VBA equivilate to Excel worksheet function MAX?

Hi Phil

Sub test()
Dim L As Long
L = 600
MsgBox Application.Max(3.1415, L, 903.33, -4, 2)
End Sub

--
HTH. Best wishes Harald
Followup to newsgroup only please.

"Phillips" wrote in message
news:Xd8zb.400557$Tr4.1152293@attbi_s03...
I am trying to do the same thing as =MAX(I2,M2,Q2) would do.
How can I do this? Can I add more values to compare?

Thanks,
Phil




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel worksheet function Charlie German Excel Worksheet Functions 3 October 15th 09 09:02 PM
Excel Worksheet Function Rick Excel Worksheet Functions 1 May 11th 06 03:43 AM
excel worksheet function rajkumarthakur Excel Worksheet Functions 1 September 30th 05 08:01 PM
Excel If then Else function in Worksheet rajeevprabhuat Excel Worksheet Functions 2 July 20th 05 06:40 AM
Excel worksheet function Lotus123 Excel Discussion (Misc queries) 1 April 23rd 05 01:09 AM


All times are GMT +1. The time now is 09:36 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"