LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VBA Automating vlookups

I have a spreadsheet with about 14,000-17000 rows and 9 columns that i have to have a vlookup happening in. It pulls data from a seperate sheet.

The problem is that process takes about 10-40minutes depending on the computer it is run on, and my job is to make those vlookups happen in each column, then paste special values to get the actual values in the cells. Right now i have the vlookup (the formula works) in row 5 column X (have 9 columns to run these on) and i find the final row, and i have to copy row5 columnX and paste from row6 colX to rowFinal colX.

So i figured the best plan of attack would be to do a .FillDown and then after it did that, copy the selection and do a Selection.PasteSpecial xlValues and that would be good. The only problem is that it doesnt want to calculate the values before i copy and paste special, so i only get empty cells when they should all be full.

My question is this
How can I get my script to pause till the vlookups are done, then copy and paste special

Thank
Cory
 
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
Why can't I sum several vlookups ?? Friday Excel Worksheet Functions 5 November 6th 09 06:42 PM
Dependent vlookups - nested vlookups (maybe) Maniv Excel Worksheet Functions 1 April 22nd 08 07:40 PM
Vlookups Office Junior[_2_] Excel Discussion (Misc queries) 1 March 30th 08 08:08 PM
VLOOKUPS Brett Excel Worksheet Functions 5 June 22nd 06 02:50 PM
vlookups Valerie S. Excel Worksheet Functions 0 January 28th 05 12:55 AM


All times are GMT +1. The time now is 09:34 PM.

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"