Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
ayl322
 
Posts: n/a
Default copying rows from next sheet over


I'm trying to copy a range of rows from one sheet over from the active
sheet, and paste them onto another sheet.

This is what I tried:

ActiveSheet.Next.Range("a2:b100").select
selection.copy

However, I'm getting the error "selection method of the range class
failed"
What am I doing wrong, and is there an alternative way to do this?

Any help would be appreciated!


--
ayl322
------------------------------------------------------------------------
ayl322's Profile: http://www.excelforum.com/member.php...fo&userid=9846
View this thread: http://www.excelforum.com/showthread...hreadid=487235

  #3   Report Post  
Posted to microsoft.public.excel.misc
ayl322
 
Posts: n/a
Default copying rows from next sheet over


it works beautifully! thank you~


--
ayl322
------------------------------------------------------------------------
ayl322's Profile: http://www.excelforum.com/member.php...fo&userid=9846
View this thread: http://www.excelforum.com/showthread...hreadid=487235

  #4   Report Post  
Posted to microsoft.public.excel.misc
Don Guillett
 
Posts: n/a
Default copying rows from next sheet over

I probably should have added that you do not need to do any selections. This
line will work by itself from the destination sheet.

sub copyit()'all you need

Sheets(ActiveSheet.Index + 1).Range("a2:b100").Copy range("a1")
end sub



--
Don Guillett
SalesAid Software

"ayl322" wrote in
message ...

it works beautifully! thank you~


--
ayl322
------------------------------------------------------------------------
ayl322's Profile:
http://www.excelforum.com/member.php...fo&userid=9846
View this thread: http://www.excelforum.com/showthread...hreadid=487235



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
fixed Rows at top of sheet [email protected] New Users to Excel 3 August 26th 05 08:55 PM
Using a relative SHEET reference for source data in a chart James Charts and Charting in Excel 6 August 16th 05 05:07 PM
inserting rows at common word in a sheet Ankur Excel Discussion (Misc queries) 0 August 10th 05 11:18 AM
Hid rows in a hidden sheet. Ben Excel Discussion (Misc queries) 2 May 27th 05 02:37 PM
Copying whole rows based upon one criteria kirbster1973 Excel Discussion (Misc queries) 2 May 26th 05 10:00 PM


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