That's one of my problems, I am using a web hosting site that only allows me to use SQL Server Express and so I can't deploy my sql report or install Excel to their server.
Main Topics
Browse All TopicsI have a report that is generated "real time" from a SQL database. The report uses Excel VBA. My problem is that when the user clicks on the button on the webpage to get the report, the report (Excel) shows the "old" data from the last time it was run even though I "clear cells" before I exit Excel. I think it has something to do with the fact that the Web button points to a specific Excel file and that file has data in it before it is refreshed using the "on open" event in the Excel VBA. Someone else is doing the website part, and I am doing the Excel report from the SQL database. Any help will be greatly appreciated.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
If your hosting provider opens a port to the SQL Express server then you can just connect over the internet and refresh the data.
They usually don't open this port though.
If formatting is not important, you can run a stored procedure in SQL Server which exports data as CSV, then you can open the CSV file.
If formatting is important, you can run a stored procedure in SQL Server which exports data as XML, which in turn uses a style sheet, and you can open this (but can't edit it)
Business Accounts
Answer for Membership
by: nmcdermaidPosted on 2009-09-10 at 15:34:18ID: 25305204
What if you manually refresh the Excel document after it's opened from the web page? It sounds like the Excel document needs to be refreshed on the web server before it is sent. To do that you'll need to install Excel on the web server.
Alternatively you could use something like Reoprting Services which comes free with SQL Server (assuming you are using SQL Server)