Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

VBA Excel Comparison

Posted on 2014-09-09
2
Medium Priority
?
182 Views
Last Modified: 2014-09-09
Hi Experts,

Wondering if I could get some assistance.  I have VBA that is comparing SourceData tab to Cost Tracker Budget Info tab to find the new project numbers on the SourceData tab and copy to the bottom of the Cost Tracker tab.  My problem is that the VBA is copying all of the project numbers over the VBA is at the bottom of the SourceData module.  When I tried to isolate the VBA and placed into Module1 the VBA errored on
Set findit = ws.Range("A4:a").Find(what:=ce.Value, lookat:=xlWhole)

Open in new window

.  And I am not sure why.

Any assistance would be appreciated.
EE-Test-2014.09.09.xlsm
0
Comment
Question by:jmac001
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 27

Accepted Solution

by:
Glenn Ray earned 2000 total points
ID: 40313030
The specified range is incomplete.  Try this:
Set findit = ws.Range("A4:A" & Cells(Rows.Count, 1).End(xlUp).Row).Find(what:=ce.Value, lookat:=xlWhole)

Open in new window


Regards,
-Glenn
0
 

Author Closing Comment

by:jmac001
ID: 40313210
Thank you works perfectly.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question