Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Find and copy in macro

Dim sStr as String
Dim oFind as Range
sStr = "recived"
Columns(1).Find("Report Total")
If Not oFind Is Nothing Then
oFind.Offset(0,1).Copy _
Destination:=Worksheets(sStr).Range("C10080")
End If

if the worksheet is named received, wth the normal spelling, or with the
other alternate spelling you used, "'recieved" then adjust the assignment of
sStr to reflect the actual name of the worksheet.

--
Regards,
Tom Ogilvy




"Duncan J" wrote in message
...
Hi,
I have two spread sheets. One called DHL and the other recived. I want to

find the word report total in DHL and copy the cell to the right of that and
paste it to the recieved worksheet C10080. I've been trying the
Set oFind = Range("A:").Find("Report Total")
If Not oFind Is Nothing Then
oFind.Resize(1, 3).Copy _
Destination:=recived ("recived").Range("C10080")
End If

Thanks,DJ



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Find and copy in macro

Thanks Tom
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
Macro to find value and then copy associated range hnyb1 Excel Discussion (Misc queries) 1 December 31st 09 04:09 PM
Please help - Find & copy Macro Damil4real Excel Worksheet Functions 1 May 7th 09 02:30 PM
Find and Copy down macro Barry McConnell Excel Discussion (Misc queries) 4 July 1st 08 08:00 AM
FIND-COPY DIFFERENT WORDS WITH MACRO Spiros Excel Discussion (Misc queries) 3 September 27th 07 01:20 PM
Help with find then copy macro john_t_h[_4_] Excel Programming 5 January 13th 04 11:48 PM


All times are GMT +1. The time now is 07:16 AM.

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"