Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-26-2016, 01:18 AM
c991257 c991257 is offline Vlookup in a range (or something) Windows 10 Vlookup in a range (or something) Office 2016
Advanced Beginner
Vlookup in a range (or something)
 
Join Date: Mar 2014
Location: Zambia
Posts: 61
c991257 is on a distinguished road
Default

The attached file has the code implemented for the various sheets. However for some odd reason it hangs (eventually finishes) on Fill 1. Why is that ?

/Møller
Attached Files
File Type: xlsm 300, ARZ, Test Summary, Sample Data.xlsm (101.2 KB, 12 views)
Reply With Quote
  #2  
Old 07-26-2016, 06:00 AM
p45cal's Avatar
p45cal p45cal is online now Vlookup in a range (or something) Windows 10 Vlookup in a range (or something) Office 2010 32bit
Expert
 
Join Date: Apr 2014
Posts: 962
p45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond repute
Default

Ah yes, that's because the code's using the equivalent of selecting cell B3 on the source sheet then on the keyboard, pressing End then down arrow, which with that source sheet with just a single line of data on row 3, was going right to the bottom of the sheet hence the long time taken. I've updated the code in several ways, principally to do the same from B2 instead of B3, but also, in case there are no lines of data at all, I've capped the number of rows it'll process to 10,000. I've also reduced the amount of code significantly.
See attached.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Vlookup in a range (or something) Find if Date range falls within another range Triadragon Excel 3 05-02-2016 11:48 AM
Vlookup in a range (or something) Name a Range in a Word Document and then copy that range to the end of the doc w button click DanNatCorning Word VBA 1 04-29-2016 10:47 PM
How to create vlookup formula range R1C1 using VBA jyfuller Excel Programming 0 04-29-2015 12:03 PM
Vlookup in a range (or something) Help using If and Vlookup heastlund Excel 3 08-04-2014 01:34 PM
VLOOKUP looking at another cell for its range Rich18144 Excel 1 06-24-2014 07:56 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:53 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft