ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   selecting multiple rows within a Macro (https://www.excelbanter.com/excel-programming/275674-re-selecting-multiple-rows-within-macro.html)

Eric Dreshfield

selecting multiple rows within a Macro
 
Bob,

Thanks....worked like a charm. For some reason I could
not get the macro recorder to give me anything but
absolute cell references.

Thanks for your help !!
Eric
-----Original Message-----
Eric,

Range(ActiveCell, ActiveCell.SpecialCells

(xlLastCell)).Select

basically created withe the macro recorder.

--

HTH

Bob Phillips

"Eric Dreshfield" wrote in message
...
How can I write the code to select multiple rows in a
Macro ? I want the macro to mimic the following
keystrokes:

Ctrl-Shift-End

to select a range of cells from where the cursor

currently
resides to the end of where data exists.

I can't seem to figure out how to accomplish that.

Thanks !!



.



All times are GMT +1. The time now is 12:17 PM.

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