UnsolvedCoding
Technical User
Greetings,
I am stuck on this one.
The problem is as follows:
The user enters a number range which gets added to some other information to create a series of consecutive sheet names. On the main worksheet called Cover, I need to create formulas that work like sumif formulas in the cells. However I can't figure out the syntax for doing this.
Example on the worksheet would be =Sumif('jb214'!D855,""P37"")
However to put that into code is where I get stuck because the sheet name (jb214) changes each time and the item to check for (P37) is pulled from an array list.
I have tried several different things and so far have failed. The macro recorder recorded this:
Sheets("Cover").Range("O14").Value = "=SUMIF('jb214'!D855,""P37"")"
But I need it to be coded something like this
Sheets("Cover").Range("O14").Value = "=SUMIF('jb' & jbNbr !D855,Input_Array(0))"
Any ideas?
I am stuck on this one.
The problem is as follows:
The user enters a number range which gets added to some other information to create a series of consecutive sheet names. On the main worksheet called Cover, I need to create formulas that work like sumif formulas in the cells. However I can't figure out the syntax for doing this.
Example on the worksheet would be =Sumif('jb214'!D855,""P37"")
However to put that into code is where I get stuck because the sheet name (jb214) changes each time and the item to check for (P37) is pulled from an array list.
I have tried several different things and so far have failed. The macro recorder recorded this:
Sheets("Cover").Range("O14").Value = "=SUMIF('jb214'!D855,""P37"")"
But I need it to be coded something like this
Sheets("Cover").Range("O14").Value = "=SUMIF('jb' & jbNbr !D855,Input_Array(0))"
Any ideas?