LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Matching Values to Enter New Value


This is the updated macro.

Subv MatchValues()

with Sheets("sheet1")
Original Source: The Code Cage Forums Lastrow = .Range("C" &
Rows.count).end(xlup).row
For RowCount = 3 to Lastrow
SearchData = .Range("C" & RowCount)
DataH = .Range("H" & RowCount)
DataJ = .Range("J" & RowCount)

with Sheets("sheet2")
set c= .columns("E").find(what:=SearchData, _
lookin:=xlvalues,lookat:=xlwhole)
if c is nothing then
msgbox("Could Not find : " & SearchData)
else
.Range("A" & (c.row + 4)) = DataJ
.Range("J" & c.row) = DataH
end if
end with
next RowCount

end with

End sub


--
joel
------------------------------------------------------------------------
joel's Profile: 229
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=170784

Microsoft Office Help



 
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 matching values, copy/paste values as well as values in ColA ryguy7272 Excel Programming 2 September 28th 09 06:20 AM
Finding Most Recent Values in Col1 -- Summing Matching Values Rothman Excel Discussion (Misc queries) 5 December 20th 07 08:19 PM
matching values italiavb Excel Programming 0 June 15th 06 01:38 AM
matching values italiavb Excel Programming 0 June 15th 06 01:13 AM
Fill values into a listbox matching selected values from a combobox Jon[_19_] Excel Programming 4 January 25th 05 04:25 PM


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