ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Insert copied row at cursor position (https://www.excelbanter.com/excel-programming/383414-insert-copied-row-cursor-position.html)

BEEJAY

Insert copied row at cursor position
 
Looking to copy a "fixed row" say row 10,000.
Place cursor on row where I want the entry.
Activate Macro, which copies row 10,000, and places it at the current cursor
location.


Sub Set_Up_Line()
' Set_Up_Line Macro
' Keyboard Shortcut: Ctrl+Shift+Z
'
Rows("10000:10000").Select
Application.CutCopyMode = False
Selection.Copy



End Sub


Charles Chickering

Insert copied row at cursor position
 
Rows(10000).Copy
Selection.Insert Shift:=xlDown
--
Charles Chickering

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


"BEEJAY" wrote:

Looking to copy a "fixed row" say row 10,000.
Place cursor on row where I want the entry.
Activate Macro, which copies row 10,000, and places it at the current cursor
location.


Sub Set_Up_Line()
' Set_Up_Line Macro
' Keyboard Shortcut: Ctrl+Shift+Z
'
Rows("10000:10000").Select
Application.CutCopyMode = False
Selection.Copy



End Sub


BEEJAY

Insert copied row at cursor position
 
Greetings:
Did you have to make it so complex? Its Friday! ( <g )

Thanks muchly.
Once I moved my copy from row to the TOP of the sheet, it worked as expected.
Have a great week-end.


"Charles Chickering" wrote:

Rows(10000).Copy
Selection.Insert Shift:=xlDown
--
Charles Chickering

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


"BEEJAY" wrote:

Looking to copy a "fixed row" say row 10,000.
Place cursor on row where I want the entry.
Activate Macro, which copies row 10,000, and places it at the current cursor
location.


Sub Set_Up_Line()
' Set_Up_Line Macro
' Keyboard Shortcut: Ctrl+Shift+Z
'
Rows("10000:10000").Select
Application.CutCopyMode = False
Selection.Copy



End Sub


Tom Ogilvy

Insert copied row at cursor position
 
? because when you inserted a row above 10000, 10000 became 10001 and wasn't
fixed any more? <g

--
Regards,
Tom Ogilvy




"BEEJAY" wrote:

Greetings:
Did you have to make it so complex? Its Friday! ( <g )

Thanks muchly.
Once I moved my copy from row to the TOP of the sheet, it worked as expected.
Have a great week-end.


"Charles Chickering" wrote:

Rows(10000).Copy
Selection.Insert Shift:=xlDown
--
Charles Chickering

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


"BEEJAY" wrote:

Looking to copy a "fixed row" say row 10,000.
Place cursor on row where I want the entry.
Activate Macro, which copies row 10,000, and places it at the current cursor
location.


Sub Set_Up_Line()
' Set_Up_Line Macro
' Keyboard Shortcut: Ctrl+Shift+Z
'
Rows("10000:10000").Select
Application.CutCopyMode = False
Selection.Copy



End Sub



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

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