Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
We run a number of Excel spreadsheets via a scheduling system to do overnight
batch calcs. Each of the spread sheets contain a macro called "RunReport" I've recently built a new machine and installed Office and all seems fine. If I load the spreadsheet and manually run the macro "RunReport" it all works as expected. But if I run a spreadsheet using a VB Script (snippet below), I get a circular reference. Has anyone seen this before or have any thoughts on the matter? I can't imagine it's the sheet as it runs just fine on the old box interactively and via a script. New box Excel Version 9.0.3821 SR-1 Old box Excel Version 9.0.2720 Did the service pack break something? ================================== Dim Excel Dim SheetPath Set objNet = WScript.CreateObject("WScript.Network") SheetPath = "D:\Data\Test\" Set Excel = CreateObject("Excel.Application") Excel.Application.Visible = True Excel.Application.Workbooks.Open SheetPath + "Test.xls", 0 Excel.Application.Run("Test.xls!RunReport") ..... |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel Dashboard without VBA Scripting? | Excel Discussion (Misc queries) | |||
Scripting in Excel 2007 | Excel Discussion (Misc queries) | |||
Excel scripting,programming | New Users to Excel | |||
iNTERACTIVE EXCEL FILE NOT INTERACTIVE ON THE WEB | Excel Discussion (Misc queries) | |||
is excel by itself enough to do scripting? | Excel Programming |