Advice: Macro Cell reference Range vs Active Cell
When recording a macro some of my instruction have RANGE to reference an cell locate that I want to modify with a macro. GOOD Example below: This is how I want my macro to identify the specific cell.
Code:
Range("B1").Select
ActiveCell.FormulaR1C1 = "Team Name"
My problem is some how ?Active Cell? is being used and that?s not what I want. How can I disable the Active Cell reference and just stick to RANGE.
Bad Example:
Code:
ActiveCell.FormulaR1C1 = "=VLOOKUP(RC[-1],Teamlist,2)"
Range("C106").Select
I have looked at TOOLS, OPTIONS, General Tab, for the R1C1 reference settings and it is not checked.
Any help? :help
Mike in Wisconsin
My problem was documented by Microsoft
I searched the Microsoft Knowledge data base and found a work around but not a fix except to buy a newer version. Here the link: http://support.microsoft.com/default...&Product=xlw2K
the 186047 is the article number. I report if i can figure out a better work around other then creating a new worksheet just before recording a new macro. My initial thought is to go to a blank cell in the worksheet that will not be used and Turn on the recorder and enter a number , change the color of the font to white, then create the rest of the macro. Once I review the macro on the code page make the reference to the first entry absolute by entering $ in the cell reference. Just a thought.
mike in Wisconsin :type