ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   range().select function in a macro (https://www.excelbanter.com/excel-programming/382940-range-select-function-macro.html)

Peter

range().select function in a macro
 
In a macro, how do you select a range of cells relative to the current
position.
i.e. range(RC,[R+1C+8]).select <=tried this but does not work

Selecting from current row and column position, to the next rox, and next 8
columns.
Thanks

Charles Chickering

range().select function in a macro
 
ActiveCell.Resize(2,8).Select

--
Charles Chickering

"A good example is twice the value of good advice."


"Peter" wrote:

In a macro, how do you select a range of cells relative to the current
position.
i.e. range(RC,[R+1C+8]).select <=tried this but does not work

Selecting from current row and column position, to the next rox, and next 8
columns.
Thanks



All times are GMT +1. The time now is 10:17 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com