Solved

Refreshing List Object in Excel 2007 from Visual Studio Tools for the MS Office System

Posted on 2009-03-31
1
387 Views
Last Modified: 2013-12-17
Hi Guys,

I've been trying to change the Command Text of a List Object in Excel 2007 during runtime from within a method of the worksheet, written in C#. The whole point is that the user should be able to select the table from a combo box and the list object should change accordingly.

Changing of the command text is mostly possible, but none of the refresh methods (neither of the whole workbook nor the List Object, Query Table, Connection or OLEDB-Connection) works.

The funny thing is that if I manually refresh in Excel, everything works fine.

Has somebody any clue how to refresh the data in the object from within the code?


Best Regards

Martin

0
Comment
Question by:MartinFRG
1 Comment
 
LVL 85

Accepted Solution

by:
Rory Archibald earned 500 total points
ID: 24036614
Hi Martin,
Could you explain exactly what you mean by "from within a method of the worksheet, written in C#. " (a managed workbook solution?) and post a sample of what you have tried?
Regards,
Rory
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question