[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

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

Posted on 2009-03-31
1
Medium Priority
?
402 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 2000 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Simulator games are perfect for generating sample realistic data streams, especially for learning data analysis. It is even useful for demoing offerings such as Azure stream analytics, PowerBI etc.
Windows Explorer lets you open cabinet (cab) files like any other folder. In VBA you can easily handle normal files and folders, but opening and indeed creating cabinet files takes a lot more - and that's you'll find here.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

834 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