ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Want a simple VBA code. (https://www.excelbanter.com/excel-programming/322105-want-simple-vba-code.html)

madhu

Want a simple VBA code.
 
Hi,

Could you please provide me with a VBA code to perform the following task:

There are records in a sheet and I need to move the Cell pointer to the next
row after the last record. Right now i press CTRL+DownArrow and again
DownArrow. Need a VBA code which will do this.

Thankyou.

MADHU



Bob Phillips[_6_]

Want a simple VBA code.
 

Cells(Rows.Count,"A").End(xlUp).Offset(1,0).Select

--

HTH

RP
(remove nothere from the email address if mailing direct)


"madhu" wrote in message
...
Hi,

Could you please provide me with a VBA code to perform the following task:

There are records in a sheet and I need to move the Cell pointer to the

next
row after the last record. Right now i press CTRL+DownArrow and again
DownArrow. Need a VBA code which will do this.

Thankyou.

MADHU





Tom Ogilvy

Want a simple VBA code.
 
Another (more literal way)

ActiveCell.End(xldown).Offset(1,0).Select

--
Regards,
Tom Ogilvy


"madhu" wrote in message
...
Hi,

Could you please provide me with a VBA code to perform the following task:

There are records in a sheet and I need to move the Cell pointer to the

next
row after the last record. Right now i press CTRL+DownArrow and again
DownArrow. Need a VBA code which will do this.

Thankyou.

MADHU






All times are GMT +1. The time now is 07:20 PM.

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