Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Possibly
Sub sheetLoop() Dim Count As Integer Dim I As Integer Count = ActiveWorkbook.Worksheets.Count Dim maximum(100) As Long For I = 1 To Count maximum(I) = WorksheetFunction.Max(ActiveWorkbook.Worksheets(I) .Range("A1:A24")) MsgBox ActiveWorkbook.Worksheets(I).Name & " Max value = " & maximum(I) Next I End Sub Mike " wrote: Hello! I have to create a macro to get the max of a set range of 24 cells repeating throughout the spread sheet. i'm not familiar with the syntax of vb for excel. does anyone have any suggestions? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
formula to return a $ amount for a range of % | New Users to Excel | |||
How to have an error popup once range cell amount is greater than | Excel Discussion (Misc queries) | |||
VBA to -0- an amount during a Copy/Paste of a range of cells | Excel Programming | |||
Count number of cells in a range with amount 0 | Excel Programming | |||
Assign a dollar amount to a corresponding number in a range of num | Excel Discussion (Misc queries) |