Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default cut and pasting a row in another workbook on the next available l.

I want to record a macro which cuts a row from a sheet and pastes the row
into another sheet without deleting any existing rows.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 222
Default cut and pasting a row in another workbook on the next available l.

Something like this will do the trick:-

ActiveCell.EntireRow.Select
Selection.Cut
Sheets("Sheet2").Select
Range("a65535").End(xlUp).Offset(1, 0).Select
ActiveSheet.Paste

"stressed" wrote:

I want to record a macro which cuts a row from a sheet and pastes the row
into another sheet without deleting any existing rows.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default cut and pasting a row in another workbook on the next available l.

stressed

Sub Copyit()
Sheets("Sheet1").Range("1:1").Copy Destination:= _
Sheets("Sheet2").Cells(Rows.Count, 1).End(xlUp) _
.Offset(1, 0)
End Sub

Note: you could use Activesheet instead of Sheets("Sheet1") to make it more
generic.


Gord Dibben Excel MVP



On Mon, 29 Aug 2005 13:50:44 -0700, "stressed"
wrote:

I want to record a macro which cuts a row from a sheet and pastes the row
into another sheet without deleting any existing rows.


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
Copy and Pasting to Another Workbook Lil Lisa Excel Discussion (Misc queries) 1 October 22nd 09 06:17 PM
Pasting Data from One Workbook to Another jswalsh33 Excel Worksheet Functions 0 October 15th 09 10:08 PM
Disable Pasting into a Workbook scottyboy Excel Worksheet Functions 2 May 9th 08 12:21 PM
pasting from one excel workbook to another KB Excel Worksheet Functions 1 May 17th 05 08:00 PM
Pasting from a specific Workbook to another workbook without having to name it. Sue[_6_] Excel Programming 1 September 18th 04 06:48 PM


All times are GMT +1. The time now is 04:43 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"