Help please. How do I find the offset of the active cell from the top left cell in a named range?
R RichardGarfield Jan 12, 2009 #1 Help please. How do I find the offset of the active cell from the top left cell in a named range?
S Stefi Jan 12, 2009 #2 Maybe you mean activecell.Row-range("rngname").Row activecell.Column-range("rngname").Column Regards, Stefi „RichardGarfield†ezt Ãrta:
Maybe you mean activecell.Row-range("rngname").Row activecell.Column-range("rngname").Column Regards, Stefi „RichardGarfield†ezt Ãrta:
R RichardGarfield Jan 12, 2009 #3 Hi Stefi Thanks for the suggestion. It seems that RowRange and ColumnRange only apply to Pivot Tables. I can't get your code to work for a worksheet range. Best wishes Richard
Hi Stefi Thanks for the suggestion. It seems that RowRange and ColumnRange only apply to Pivot Tables. I can't get your code to work for a worksheet range. Best wishes Richard
S Stefi Jan 12, 2009 #4 You misunderstood my post, it has nothing to do with RowRange and ColumnRange. Subtract range("rngname").Row from activecell.Row for row offset and subtract range("rngname").Column from activecell.Column for Column offset: activecell.Row - range("rngname").Row activecell.Column - range("rngname").Column Regards, Stefi „RichardGarfield†ezt Ãrta:
You misunderstood my post, it has nothing to do with RowRange and ColumnRange. Subtract range("rngname").Row from activecell.Row for row offset and subtract range("rngname").Column from activecell.Column for Column offset: activecell.Row - range("rngname").Row activecell.Column - range("rngname").Column Regards, Stefi „RichardGarfield†ezt Ãrta:
R RichardGarfield Jan 12, 2009 #5 Many thanks, Stefi With your help, I've solved it. Best wishes Richard
S Stefi Jan 12, 2009 #6 You are welcome! Thanks for the feedback! Stefi „RichardGarfield†ezt Ãrta: