Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 67
Default copy and paste question

Is there a way to serch for a word than copy the next few cells to
paste else where?
A B C
Item 1 11.2 101.2
Item 2 11.5 152.0
Item 3 11.68 134.2
Item 1 11.3 100.5


It would search for the item then copy and the next two rows and I can
then paste it.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default copy and paste question

With Worksheets(1).Range("a1:a500")
Set c = .Find(Item2, lookin:=xlValues)
If Not c Is Nothing Then

range(c.offset(0,1),c.offset(0,2)).copy
End If
End With

" wrote:

Is there a way to serch for a word than copy the next few cells to
paste else where?
A B C
Item 1 11.2 101.2
Item 2 11.5 152.0
Item 3 11.68 134.2
Item 1 11.3 100.5


It would search for the item then copy and the next two rows and I can
then paste it.


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 Paste Question stew Excel Discussion (Misc queries) 12 November 9th 08 07:45 PM
Copy/Paste Question DoubleZ Excel Discussion (Misc queries) 3 September 24th 08 11:13 PM
Copy/Paste question Dan Excel Worksheet Functions 0 February 22nd 07 12:55 AM
Odd copy and paste question ElkySS Excel Programming 4 December 25th 06 12:07 AM
Copy Paste Question lcannon Excel Discussion (Misc queries) 1 June 14th 05 12:48 AM


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

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

About Us

"It's about Microsoft Excel"