#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Max Max

Avec quelle fonction, trouver le MAXIMUM d'une dizaine de variables
numériques ???

La fonction Max existe pour les formules dans les worksheets , mais pas en
programmation VB !!!!!!!!!!!!!!
  #2   Report Post  
Posted to microsoft.public.excel.programming
JNW JNW is offline
external usenet poster
 
Posts: 480
Default Max Max

Don't know if this is what you're looking for.

Sub maxit()
Dim MaxNum As Integer
MaxNum = Application.WorksheetFunction.Max(Range("A1:A4"))
MsgBox MaxNum
End Sub

Can replace "Range("A1:A4")" With another range or variable

"hexadec" wrote:

Avec quelle fonction, trouver le MAXIMUM d'une dizaine de variables
numériques ???

La fonction Max existe pour les formules dans les worksheets , mais pas en
programmation VB !!!!!!!!!!!!!!

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,440
Default Max Max

?Application.MAX(range("a1:a12"))

--
Kind regards,

Niek Otten

"hexadec" wrote in message
...
Avec quelle fonction, trouver le MAXIMUM d'une dizaine de variables
numériques ???

La fonction Max existe pour les formules dans les worksheets , mais pas en
programmation VB !!!!!!!!!!!!!!



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



All times are GMT +1. The time now is 05:47 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"