All cells not calculating

C

Chris

I have a code that does a vlookup function for all cells
in a range then copies the results and pastes values. The
problem is that it looks like it pastes values before the
vlookups are finished calculating. I have tried the
Application.Wait command to no avail. When I step through
the macro it calculates fine. Is there another way to
force VBA to wait until the worksheet is finished
calculating before proceeding?
 
N

Niek Otten

Hi Chris,

A bit difficult to say!
What formulas in your worksheet? What data? What code in your module? What
results did you expect? What did you get instead?

--

Kind Regards,

Niek Otten

Microsoft MVP - Excel
 
J

John Tjia

Is your calculation set to Automatic (Tools>Options>Calculation)? Try
Application.Calculate instead of .Wait also.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top