I've entered this bit of code into a macro and it's working ok:
however, when the cell doesn't have the word Range it returns a 'Value' error.
To overcome this I added an ISERROR function:
Which gives me my 1004 problem.
Can anyone explain were my error is please?
Code:
ActiveCell.FormulaR1C1 = "=MID(R[0]C[-2],SEARCH(""Range"",R[0]C[-2])+6,1)"
however, when the cell doesn't have the word Range it returns a 'Value' error.
To overcome this I added an ISERROR function:
Code:
ActiveCell.FormulaR1C1="=ISERROR(MID(R[0]C[-2],SEARCH(""Range"",R[0]C[-2])+6,1),"")"
Which gives me my 1004 problem.
Can anyone explain were my error is please?