ianb
Member
Hi all,
I have loads of modules in an excel spreadsheet (Dashboard) that I run via vbscripts.
They all work fine in excel 2003. they bypass the pivottable updates (as the dashboard is connected to an access db. - excel : refresh data when opening a file)
I have upgraded to 2010 and none of my vbscripts work. Also when testing on excel 2007 it loads refreshes and loads the data yet the module times out.
1. what changes do I need on my vbscript to open and run a module.
2. can I bypass the refresh data (else do i need to switch this off and doa click button manual load to avoid the conflicts).
listed below is one of my vbscripts. I will at the end change all files, etc to .xlsm yet for the time being I keep .xls until all vbscripts are working correcly.
I aim for the simple solution. Open spreadsheet run modules then close spreadsheets.
option explicit
Dim oExcel, oStats
Set oExcel = CreateObject("Excel.Application")
oExcel.Visible = True
oExcel.DisplayAlerts = False
oExcel.AskToUpdateLinks = False
Set oStats = oExcel.Workbooks.Open("H:ReportsStatistics DataDashboard.xls")
oExcel.Run "ModuleMenuRun"
I have loads of modules in an excel spreadsheet (Dashboard) that I run via vbscripts.
They all work fine in excel 2003. they bypass the pivottable updates (as the dashboard is connected to an access db. - excel : refresh data when opening a file)
I have upgraded to 2010 and none of my vbscripts work. Also when testing on excel 2007 it loads refreshes and loads the data yet the module times out.
1. what changes do I need on my vbscript to open and run a module.
2. can I bypass the refresh data (else do i need to switch this off and doa click button manual load to avoid the conflicts).
listed below is one of my vbscripts. I will at the end change all files, etc to .xlsm yet for the time being I keep .xls until all vbscripts are working correcly.
I aim for the simple solution. Open spreadsheet run modules then close spreadsheets.
option explicit
Dim oExcel, oStats
Set oExcel = CreateObject("Excel.Application")
oExcel.Visible = True
oExcel.DisplayAlerts = False
oExcel.AskToUpdateLinks = False
Set oStats = oExcel.Workbooks.Open("H:ReportsStatistics DataDashboard.xls")
oExcel.Run "ModuleMenuRun"