PC Review


Reply
Thread Tools Rate Thread

Macro Vlookup count

 
 
Rbirdie
Guest
Posts: n/a
 
      24th Mar 2009
I am new to VBA but I need to find a way to do this.

I have a macro that is doing multiple Vlookups. I need a way to have the
vlookup stop at the end of the column. Now it leaving NA to the end of the
column. Messy. Please understand that I need to be spoken to like I am 5 with
this. I am very good at Access and Excel, but new to VBA. Go easy on me.

Thanks.

"=VLOOKUP(C[-6],'[Assigned
Accounts.xls]Assigned_Accounts'!C1:C10,8,FALSE)"
Range("X2:Z2").Select
Selection.Copy
Range("T3:X3").Select
Range("X3").Activate
Range(Selection, Selection.End(xlDown)).Select
ActiveWindow.SmallScroll Down:=6
LastCell = Cells(Rows.Count, "A").End(xlUp)
Range("X1:Z65000").Select
ActiveSheet.Paste
Application.CutCopyMode = False
Range("X2:Z2").Select
 
Reply With Quote
 
 
 
 
Tom [Pepper] Willett
Guest
Posts: n/a
 
      24th Mar 2009
And your FrontPage question is?
--
Tom [Pepper] Willett
Microsoft MVP - FrontPage
---------------------------
"Rbirdie" <(E-Mail Removed)> wrote in message
news:1CCDD297-E0E9-49F4-95C9-(E-Mail Removed)...
:I am new to VBA but I need to find a way to do this.
:
: I have a macro that is doing multiple Vlookups. I need a way to have the
: vlookup stop at the end of the column. Now it leaving NA to the end of the
: column. Messy. Please understand that I need to be spoken to like I am 5
with
: this. I am very good at Access and Excel, but new to VBA. Go easy on me.
:
: Thanks.
:
: "=VLOOKUP(C[-6],'[Assigned
: Accounts.xls]Assigned_Accounts'!C1:C10,8,FALSE)"
: Range("X2:Z2").Select
: Selection.Copy
: Range("T3:X3").Select
: Range("X3").Activate
: Range(Selection, Selection.End(xlDown)).Select
: ActiveWindow.SmallScroll Down:=6
: LastCell = Cells(Rows.Count, "A").End(xlUp)
: Range("X1:Z65000").Select
: ActiveSheet.Paste
: Application.CutCopyMode = False
: Range("X2:Z2").Select


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
count duplicats, display incremental count, restart count at changein value JenIT Microsoft Excel Programming 2 24th Aug 2010 09:10 PM
Macro Count with Vlookup Rbirdie Microsoft Excel Misc 0 25th Mar 2009 10:01 PM
Count New to the List, Count Leaving the List, Count Total SteveC Microsoft Excel Misc 1 2nd Feb 2009 10:48 PM
how to get count(col1), count(col2), count(sol3) with only one query Mario Krsnic Microsoft Access Queries 2 27th Oct 2006 06:52 PM
IF(AND(val1=VLOOKUP( );val2>=VLOOKUP( );val2<=VLOOKUP( );VLOOKUP( =?Utf-8?B?T3Nv?= Microsoft Excel Worksheet Functions 2 26th Jan 2005 07:56 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:14 AM.