N nc Jul 18, 2009 #1 Using I would like to make a value of a cell equal to a Excel function of a range. Example: Sheet 1 Cell A1 = Sheet 2 max of range (A:A)
Using I would like to make a value of a cell equal to a Excel function of a range. Example: Sheet 1 Cell A1 = Sheet 2 max of range (A:A)
D Don Guillett Jul 19, 2009 #2 bSub formulamacro() Range("m1").Value = Application.Max(Sheets("sheet2").Columns(1)) Range("m2").Formula = "=max(sheet2!a:a)" End Sub
bSub formulamacro() Range("m1").Value = Application.Max(Sheets("sheet2").Columns(1)) Range("m2").Formula = "=max(sheet2!a:a)" End Sub
N nc Jul 19, 2009 #3 Don Thanks a lot for your help. Don Guillett said: bSub formulamacro() Range("m1").Value = Application.Max(Sheets("sheet2").Columns(1)) Range("m2").Formula = "=max(sheet2!a:a)" End Sub -- Don Guillett Microsoft MVP Excel SalesAid Software (e-mail address removed) Click to expand...
Don Thanks a lot for your help. Don Guillett said: bSub formulamacro() Range("m1").Value = Application.Max(Sheets("sheet2").Columns(1)) Range("m2").Formula = "=max(sheet2!a:a)" End Sub -- Don Guillett Microsoft MVP Excel SalesAid Software (e-mail address removed) Click to expand...