Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 34
Default Please help - Find & copy Macro

Please help -

Macro to find "E4" value in column A. If found, copy found value from
the A column and paste in cell A5.

All info are in sheet named is List.

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JCS JCS is offline
external usenet poster
 
Posts: 93
Default Please help - Find & copy Macro

Hi,

Try the following code: I'm assuming you know hw to inser this code into a
VBA module. This also assumes that there are no blanks in column A.

Sub FindValue()
Dim CellValue As Variant
Dim i As Variant

CellValue = Range("e4").Value
Application.ScreenUpdating = False
Range("e5").ClearContents
Range("a1").Select

For i = 1 To Range("a1").End(xlDown).Row

If ActiveCell().Value = CellValue Then
Selection.Copy
Range("E5").Select
ActiveSheet.Paste
Application.CutCopyMode = False
Else
ActiveCell.Offset(1, 0).Select

End If

Next i
Application.ScreenUpdating = True
Range("a1").Select
End Sub

John

"Damil4real" wrote:

Please help -

Macro to find "E4" value in column A. If found, copy found value from
the A column and paste in cell A5.

All info are in sheet named is List.

Thanks!

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
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
FIND-COPY DIFFERENT WORDS WITH MACRO Spiros Excel Discussion (Misc queries) 1 September 27th 07 11:43 AM
Macro to find matching date and copy values to another sheet Tiger Excel Discussion (Misc queries) 3 August 13th 07 01:45 PM
Macro to find, copy, and paste until value change Valerie Excel Worksheet Functions 4 January 26th 06 04:10 AM


All times are GMT +1. The time now is 02:40 PM.

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"