Solved

VBA Excel Comparison

Posted on 2014-09-09
2
155 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
2 Comments
 
LVL 27

Accepted Solution

by:
Glenn Ray earned 500 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Sparklines have been introduced with Excel 2010 and are a useful tool for creating small in-cell charts, used for example in dashboards. Excel 2010 offers three different types of Sparklines: Line, Column and Win/Loss. What it does not offer is a…
Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

746 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now