Hi,
I am quite new to the forum and VB so I really need your help.
Basically I have:
And I need to update it to:
For every cell in a really large table. I wrote this:
But I can not make it loop for each cell. PLEASE HELP!!!!
I am quite new to the forum and VB so I really need your help.
Basically I have:
Code:
=VLOOKUP($B$28,' Source Volume'!$C$2:$P$500,5,0)
And I need to update it to:
Code:
=IF(VLOOKUP($B$28,' Source Volume'!$C$2:$P$500,5,0)<=0, #N/A, VLOOKUP($B$28,' Source Volume'!$C$2:$P$500,5,0))
For every cell in a really large table. I wrote this:
Code:
Sub AddTextToCell()
'Add an extra formula code to an existing frmula
'-----------------------------------------------
'Copies the initial formula
Vcell = ActiveCell.Formula
'Removes the = before the formula
Vcell = Right(Vcell, Len(Vcell) - 1)
'Adds the parts for the new formula
Vcell = "=IF(" & Vcell & "<=0, #N/A, " & Vcell & ")"
'Puts the new formula in the cell
ActiveCell.Formula = Vcell
End Sub
But I can not make it loop for each cell. PLEASE HELP!!!!