ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Excel 2003 VBA Macro (https://www.excelbanter.com/excel-discussion-misc-queries/235921-excel-2003-vba-macro.html)

Partly Void[_2_]

Excel 2003 VBA Macro
 
Please advise syntax for the "Shift" command when selecting a block of data
where the columns are known but not the rows no's. ie a block from col A to
col H containg 66 rows.
Thanks

Jacob Skaria

Excel 2003 VBA Macro
 
ActiveSheet.UsedRange.Select

OR

'Last row filled in Column A
lngLastRow = ActiveSheet.Cells(Rows.Count, "A").End(xlUp).Row
Range("A1:H" & lngLastRow).Select


If this post helps click Yes
---------------
Jacob Skaria


"Partly Void" wrote:

Please advise syntax for the "Shift" command when selecting a block of data
where the columns are known but not the rows no's. ie a block from col A to
col H containg 66 rows.
Thanks



All times are GMT +1. The time now is 08:19 PM.

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