Excel のListObject とグラフ (2)

by manamana 24. 9月 2010 23:23
ListObject は、表形式のデータを簡単に扱うためのオブジェクトで、Excel 2003 から追加されています。

Excel 2003 では、データ - リスト - リストの作成
 
  

Excel 2007 以降では、挿入 - テーブル で作られる特殊な Range が ListObject です。
 
 
 
  
※Excel 2007 から、色分けが可能になっています

VSTO の環境では、ToolBox - Excelコントロール に ListObject があるので、VSTO の開発者にはお馴染みです。
 
  

この ListObject で指定された Range とグラフデータと一致させると、
ListObject の範囲変更と連動して、グラフの範囲も連動して変更されます。

 
  ↓  ↓  ↓  
 
 
 
 
Excel 2007 からは、列の連動も自動的に行われます。
 
 
   ↓  ↓  ↓  

 

Excel 2010 だと、連動している様子が理解できます。(※範囲指定時にテーブル名が反映される)
 
  
グラフの連動は、Excelのバージョンによって多少の癖があります。
データの指定順を変えるとうまく行かなかったり、範囲の指定方法が統一されていなかったり・・・
この辺の操作は慣れるしかないのかも?


その他、ListObject は、列毎の並べ替え・フィルタリングが簡単に行えます。
 
   Excel 2003
 
  Excel 2007
 

ListObject の最大の利点は、外部の DB と簡単にリンクできる点です
特に SharePoint とのリンクには専用のメニューが用意されているので、
SharePoint を導入している企業ユーザーは、積極的に ListObject を使うと便利です。
 
  

VSTO を使えば、DataSet/DataTable とのリンクが可能になり、Excelの表に反映できます。
ついでにグラフも自動的に更新されるので手間いらずです。
以前はこの辺の手順をコーディングしていましたが、今ではすっかりお任せするようになりました。


(豆知識)
ListObject を「リスト」と呼ぶと、入力規則の「リスト」と混同してしまうので、
Excel 2007 以降では「テーブル」という呼ぶようになったと何処かで呼んだ記憶があります。
オブジェクト名が ListObject なので混乱してしまいます。何とかしてくださいww

Tags:

VSTO

コメント (11) -

new york movers
2010/10/19 22:09:54 #

I tried to make but i could not make it i really need it so much you help me by sharing this excel chart.

返信

kays jewelers
2010/10/20 0:17:13 #

After this article i tried to make but i could not.its really need to help me after read out it i can solve my problem easily.

返信

new york movers
2010/10/20 1:23:55 #

You have good skill to use excel i also need practice for use excel you give good idea to use excel.

返信

new york movers
2010/10/20 20:05:36 #

Thanks for sharing this informative blog i really need it.

返信

manamana
2010/10/21 1:51:00 #

日本語の情報が(翻訳されているとしても)役に立つとは思いにくいですが、
本当にサンプルを希望されるのでしょうか?
※などとマジレスしてみるww


返信

recipes
2011/01/11 23:30:31 #

The snapshots of the excel are very informative for me and i have also visited the shared links in the post which are also knowledgeable.

返信

eternity bands
2011/01/17 21:09:20 #

Thanks for sharing the great post its really nice and amazing article.its solve many problems.

返信

Genaro Charpia
2011/03/21 15:47:20 #

Hey there just wanted to give you a brief heads up and let you know a few of the pictures aren't loading properly. I'm not sure why but I think its a linking issue. I've tried it in two different web browsers and both show the same results.

返信

costa bingo
2011/03/31 21:10:30 #

I must say that excel is really helpful, awesome, application for personal and professional use. You shared its basic knowledge to create objects i have a lot of knowledge about it.   

返信

save my marriage
2011/04/25 16:36:22 #

I heard about your blog, he can't speak enough good things in regards to your site. Every so often he spends longer  here than he does with me. Don't get me wrong, i'm not hurt or anything i'm just saying. Anywho I guess It's much better that he is here as opposed to some nudie website somewhere. lol

返信

Kettlebell Workout DVD
2011/05/28 18:18:47 #

I am so thankful to you on providing such superb information regarding list object in excel chart. I really need of it.

返信

コメントを書く


スポンサーリンク

Calendar

<<  3月 2024  >>
252627282912
3456789
10111213141516
17181920212223
24252627282930
31123456

View posts in large calendar

Month List

Twitter