ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Insert Row Selection (https://www.excelbanter.com/excel-worksheet-functions/234369-insert-row-selection.html)

VLOOKUP fORMULA

Insert Row Selection
 
Any one please help me.......?

After inserting row how can I go back to the row I selected for inserting,
instead for going to A1

Sub insertrowatselection()
Rows(ActiveCell.Row).Insert
Range("A1").Select

FSt1

Insert Row Selection
 
hi
not sure but see if this is what you want.....
Sub insertrowatselection()
Rows(ActiveCell.Row).Insert
ActiveCell.Offset(1, 0).Select
End Sub

regards
FSt1

" VLOOKUP fORMULA" wrote:

Any one please help me.......?

After inserting row how can I go back to the row I selected for inserting,
instead for going to A1

Sub insertrowatselection()
Rows(ActiveCell.Row).Insert
Range("A1").Select


Shane Devenshire[_2_]

Insert Row Selection
 
Hi,

here is another suggestion

Sub MyInsert()
With Selection
.EntireRow.Insert
.Select
End With
End Sub

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


" VLOOKUP fORMULA" wrote:

Any one please help me.......?

After inserting row how can I go back to the row I selected for inserting,
instead for going to A1

Sub insertrowatselection()
Rows(ActiveCell.Row).Insert
Range("A1").Select



All times are GMT +1. The time now is 11:33 PM.

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