Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
| Search | Today's Posts | Mark Forums Read
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 30th, 2008, 03:04 PM
Registered User
 
Join Date: Apr 2008
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Matching values in Sheet1 to those in other sheet

Hi all,

I need help with an excel VBA macro. Basically I have a workbook with two worksheets. I need to write a macro that will search Sheet1 ColumnC for each of the values in Sheet2 ColumnA and, when found, populate the corresponding cell in Sheet1 ColumnE with a value of "Late". I know that VLOOKUP is probably the way to go but I just can't seem to work out the Loop. Any help would be greatly appreciated.
 
Old May 1st, 2008, 09:07 AM
Friend of Wrox
Points: 3,060, Level: 23
Points: 3,060, Level: 23 Points: 3,060, Level: 23 Points: 3,060, Level: 23
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2005
Location: , , .
Posts: 812
Thanks: 1
Thanked 53 Times in 49 Posts
Default

Hi

You can use the Find Method of Excel and achieve the same. Please have a look at http://vbadud.blogspot.com/2007/10/e...ll-method.html

Cheers
Shasur

http://www.dotnetdud.blogspot.com

VBA Tips & Tricks (http://www.vbadud.blogspot.com)




Similar Threads
Thread Thread Starter Forum Replies Last Post
Export Values to Excel Sheet from Sub form ayazhoda Access VBA 3 June 12th, 2012 03:18 PM
Matching Values between two ranges hood8jmark Excel VBA 2 May 2nd, 2008 09:55 AM
two workbooks--matching values within kwik10z Excel VBA 0 November 29th, 2007 11:51 AM
Merge the Value in Sheet1 and Sheet2 in Excel rylemer Pro VB 6 0 March 15th, 2005 04:58 PM
Matching of attribute values gb XSLT 2 February 10th, 2004 04:12 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.