pauses in code

  • Thread starter Thread starter duncan
  • Start date Start date
D

duncan

Guest
I need the second part of my code to run once the first part has finished. What the code does is export a table to excel which automatically opens then using the send keys function it performs some complex calculations. the problem is that the send keys function often runs before the file has automatically opened. Any ideas how i can stop this happening
 
Can you tell Excel to do the calculations with a macro and avoid using sendkeys? I use this option all the time and have never had a problem.
The syntax is:
TheNameYouGaveExcelVariable.Run "ExcelMarcoName"
 

Users who are viewing this thread

Back
Top Bottom