Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 244
Default All cells not calculating

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?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,440
Default All cells not calculating

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

"Chris" wrote in message
...
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?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default All cells not calculating

Is your calculation set to Automatic (ToolsOptionsCalculation)? Try
Application.Calculate instead of .Wait also.

"Chris" wrote in message ...
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?

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
Calculating cells beto Excel Discussion (Misc queries) 1 February 1st 10 11:46 PM
calculating cells Stuart Excel Worksheet Functions 3 June 25th 08 11:32 AM
Cells are not calculating on the fly MrWilson Excel Worksheet Functions 3 December 19th 06 04:35 PM
calculating cells twice? Nike6106 Excel Discussion (Misc queries) 2 July 8th 06 10:14 PM
Calculating cells TUNGANA KURMA RAJU Excel Discussion (Misc queries) 1 November 2nd 05 01:40 PM


All times are GMT +1. The time now is 04:21 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"