Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 247
Default 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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 272
Default 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

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 247
Default 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

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default 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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automating Data Entry (Position the cursor, insert row) Bethany Excel Programming 4 November 28th 06 06:54 PM
Cursor position saziz Excel Discussion (Misc queries) 2 August 9th 05 08:19 PM
Cursor position? Marc Excel Discussion (Misc queries) 1 March 27th 05 07:09 PM
cursor position Fan Fan Excel Programming 3 August 14th 04 01:12 AM
cursor position NTL Excel Programming 1 January 18th 04 08:23 PM


All times are GMT +1. The time now is 04:02 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"