xcelnovice101
Active Member
- Joined
- Aug 24, 2012
- Messages
- 368
Rich (BB code):
[M2].FormulaArray = "=MAX(IF('Historical Orders'!$B$2:$B$1048576='Form (2)'!M1,'Historical Orders'!$K$2:K1048576+1,1))"
[M2].FormulaArray = "=MAX(IF('Historical Orders'!$B$2:$B$1048576='Form (2)'!M1,'Historical Orders'!$K$2:K1048576+1,1))"
try:
[M2].FormulaArray = "=MAX(IF('Historical Orders'!$B$2:$B$1048576='" & activesheet.Name & "'!M1,'Historical Orders'!$K$2:K1048576+1,1))"
[M2].FormulaArray = "=MAX(IF('Historical Orders'!$B$2:$B$1048576=M1,'Historical Orders'!$K$2:K1048576+1,1))"
So if the formula goes on the currently active sheet, and we want that cell reference to refer to the currently active sheet...Rich (BB code):[M2].FormulaArray = "...