Try switching off Auto Calculation and calculating them in the order that you
want them done, for example:-
Public Sub MyCalculate()
Dim sh As Worksheet
Application.Calculation = xlCalculationManual
For Each sh In Workbooks("SourceData").Worksheets
sh.Calculate
Next sh
For Each sh In Workbooks("PDFData").Worksheets
sh.Calculate
Next sh
Application.Calculation = xlCalculationAutomatic
End Sub
--
Alan Moseley IT Consultancy
http://www.amitc.co.uk
If I have solved your problem, please click Yes below. Thanks.
"Brad" wrote:
> Using Excel 2007
>
> I have two macros: one that gets data from an external source and the other
> that takes information from excel and creates PDF's. If I run each macro
> individually, I get the right results. If I call the macro that creates the
> PDF's from the macro that gets the data (the pdf's have not been updated with
> the new information). The workbook is on automatic calculation mode.
>
> I've have tried adding the lines
> Application.Calculatefull
> Application.Wait Now + timevalue("00:00:03")
>
> in the first macro before calling the second macro - (with no success) any
> suggestions?