Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Calculating cells | Excel Discussion (Misc queries) | |||
calculating cells | Excel Worksheet Functions | |||
Cells are not calculating on the fly | Excel Worksheet Functions | |||
calculating cells twice? | Excel Discussion (Misc queries) | |||
Calculating cells | Excel Discussion (Misc queries) |