I recorded following Macro:
I want to make a function in VBA called Function ValueRowTwo() which does the same thing like the markro above. Eg. when I insert ValueRowTwo in cel B7 it should return the value of cell B2, or when I insert it in cell C5 it should return the value of cell C2.VB Code:
Range("B11").Select ActiveCell.FormulaR1C1 = _ "=CELL(""contents"",R2C)"
Can somebody rewrite this worksheet formula to VBA function for me?




Reply With Quote