Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default pasting selection to end of workbook?

Here is what i am attempting to do. i have a range of
cells in a column that i am copying, switching to a
different open workbook, and pasting at the end of the
column.
ex. cells a5:a50 are getting copied and pasted to a
different workbook at the end of column b
Any help would be much appreciated!
thanks in advance,
Josh
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default pasting selection to end of workbook?

Assuming the range you want to copy is already selected...

Selection.Copy
Sheets("Sheet2").Select 'Or whatever sheet name you have
Range("B1").select 'Or the first cell of the column you
want to find the end of.

'This takes us to the last cell of the column
Selection.End(xlDown).Select

'Need to go down one more cell so we don't overwrite the
last cell of data
ActiveCell.Offset(1, 0).Range("A1").Select

'Paste what we copied
ActiveSheet.Paste

-----Original Message-----
Here is what i am attempting to do. i have a range of
cells in a column that i am copying, switching to a
different open workbook, and pasting at the end of the
column.
ex. cells a5:a50 are getting copied and pasted to a
different workbook at the end of column b
Any help would be much appreciated!
thanks in advance,
Josh
.

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
Pasting a Selection as a Picture [email protected] Links and Linking in Excel 3 February 7th 07 01:10 PM
Pasting Selection In First Blank Row tnederlof Excel Discussion (Misc queries) 5 February 6th 07 10:38 PM
How flip a selection before pasting - Paste special ruks Excel Discussion (Misc queries) 2 May 31st 06 06:38 PM
specific data selection/pasting Anthony Excel Discussion (Misc queries) 1 January 26th 05 08:53 PM
pasting formulas into a selection Frank Kabel Excel Worksheet Functions 3 October 30th 04 06:07 AM


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