#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default Macro Lookup Count

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
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
I tried to get around the problem of the pivot table field settingdefaulting to Count instead of Sum by running a macro of change the settingfrom Count to Sum. However, when I tried to run the Macro, I got error messageof run time error 1004, unable Enda80 Excel Worksheet Functions 1 May 3rd 08 02:35 PM
I tried to get around the problem of the pivot table field settingdefaulting to Count instead of Sum by running a macro of change the settingfrom Count to Sum. However, when I tried to run the Macro, I got error messageof run time error 1004, unable Enda80 Excel Discussion (Misc queries) 1 May 3rd 08 10:52 AM
lookup count Antonio Excel Discussion (Misc queries) 3 May 26th 06 03:39 PM
lookup and count DRvfr Excel Discussion (Misc queries) 1 December 23rd 05 10:48 PM
lookup, count Stan Altshuller Excel Worksheet Functions 1 January 6th 05 11:08 PM


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

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"