{"id":5680,"date":"2016-08-10T08:46:00","date_gmt":"2016-08-09T23:46:00","guid":{"rendered":"http:\/\/excelwork.info\/excel\/?p=5680"},"modified":"2016-08-10T08:46:00","modified_gmt":"2016-08-09T23:46:00","slug":"listobjectlistcolumns","status":"publish","type":"post","link":"https:\/\/excelwork.info\/excel\/listobjectlistcolumns\/","title":{"rendered":"\u30ea\u30b9\u30c8\u30fb\u30c6\u30fc\u30d6\u30eb\u306e\u5217\uff08ListColumns, ListColumn\uff09"},"content":{"rendered":"<h2>ListColumns \u30d7\u30ed\u30d1\u30c6\u30a3<\/h2>\n<div class=\"m30-l\">\n<p><strong>ListColumns \u30b3\u30ec\u30af\u30b7\u30e7\u30f3<\/strong>\u306f\u3001\u30c6\u30fc\u30d6\u30eb\u30fb\u30ea\u30b9\u30c8\uff08<a href=\"https:\/\/excelwork.info\/excel\/listobject\/\">ListObject \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/a> \uff09\u5185\u306b\u3042\u308b\u3059\u3079\u3066\u306e\u5217\u3092\u8868\u3057\u307e\u3059\u3002<br \/>\n    <strong>ListColumns \u30b3\u30ec\u30af\u30b7\u30e7\u30f3<\/strong>\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f\u3001<strong>ListObject \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong> \u306e <strong>ListColumns \u30d7\u30ed\u30d1\u30c6\u30a3<\/strong> \u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<br \/>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>    <span class=\"red\"><strong>\uff1c\u53d6\u5f97\uff1e<\/strong><\/span><br \/>\n    <em>object<\/em>.<strong>ListColumns<\/strong><\/p><\/div>\n<br \/>\n<h4>\u5f15\u6570\u30fb\u623b\u308a\u5024<\/h4>\n<div class=\"m30-l\">\n<ul style=\"margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;\">\n<li>object&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u5bfe\u8c61\u3068\u306a\u308b <span class=\"red\"><strong>ListObject \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong><\/span>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>\u623b\u308a\u5024&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;ListColumns \u30b3\u30ec\u30af\u30b7\u30e7\u30f3<\/li>\n<\/ul>\n<br \/><\/div>\n<\/div>\n<br \/><br \/>\n<h2>ListColumns \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u4e3b\u306a\u30e1\u30bd\u30c3\u30c9\u30fb\u30d7\u30ed\u30d1\u30c6\u30a3<\/h2>\n<div class=\"m30-l\">\n<br \/>\n<h3>Add \u30e1\u30bd\u30c3\u30c9<\/h3>\n<p>\u30c6\u30fc\u30d6\u30eb\uff08\u30ea\u30b9\u30c8\uff09\u306b\u30d5\u30a3\u30fc\u30eb\u30c9\uff08\u5217\uff09\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<br \/>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>    <em>object<\/em>.<strong>Add<\/strong> ( [ <em>position<\/em> ] )<\/p><\/div>\n<br \/>\n<h4>\u5f15\u6570\u30fb\u623b\u308a\u5024<\/h4>\n<div class=\"m30-l\">\n<ul style=\"margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;\">\n<li>object&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u5bfe\u8c61\u3068\u306a\u308b <span class=\"red\"><strong>ListColumns \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong><\/span>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>position&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u633f\u5165\u3059\u308b\u4f4d\u7f6e\uff08\uff11\u304b\u3089\u59cb\u307e\u308b\u6574\u6570\u5024\uff09\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u6307\u5b9a\u3055\u308c\u305f\u4f4d\u7f6e\u306b\u3042\u308b\u5217\u306f\u53f3\u5074\u306b\u79fb\u52d5\u3057\u307e\u3059\u3002\u7701\u7565\u3059\u308b\u3068\u6700\u5f8c\u5c3e\u306b\u8ffd\u52a0\u3055\u308c\u307e\u3059\u3002<\/li>\n<li>\u623b\u308a\u5024&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;ListColumn \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/li>\n<\/ul>\n<br \/>\n<p class=\"caution4\">\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u524a\u9664\u3059\u308b\u306b\u306f\u3001<a href=\"#listcolum_delete\">ListColumn.Delete \u30e1\u30bd\u30c3\u30c9<\/a> \u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/div>\n<br \/><br \/>\n<h3>Count \u30d7\u30ed\u30d1\u30c6\u30a3<\/h3>\n<p>\u30c6\u30fc\u30d6\u30eb\uff08\u30ea\u30b9\u30c8\uff09\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u6570\uff08\u5217\u6570\uff09\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n<br \/>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>    <span class=\"red\"><strong>\uff1c\u53d6\u5f97\uff1e<\/strong><\/span><br \/>\n    <em>object<\/em>.<strong>Count<\/strong><\/p><\/div>\n<br \/>\n<h4>\u5f15\u6570\u30fb\u623b\u308a\u5024<\/h4>\n<div class=\"m30-l\">\n<ul style=\"margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;\">\n<li>object&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u5bfe\u8c61\u3068\u306a\u308b <span class=\"red\"><strong>ListColumns \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong><\/span>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>\u623b\u308a\u5024&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u5217\u6570<\/li>\n<\/ul><\/div>\n<br \/><br \/>\n<h3>Item \u30d7\u30ed\u30d1\u30c6\u30a3<\/h3>\n<p>\u30c6\u30fc\u30d6\u30eb\uff08\u30ea\u30b9\u30c8\uff09\u5185\u306e\u7279\u5b9a\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\uff08\u5217\uff09\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n<br \/>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>    <span class=\"red\"><strong>\uff1c\u53d6\u5f97\uff1e<\/strong><\/span><br \/>\n    <em>object<\/em>[ .<strong>Item<\/strong> ] ( <em>index<\/em> )<\/p><\/div>\n<br \/>\n<h4>\u5f15\u6570\u30fb\u623b\u308a\u5024<\/h4>\n<div class=\"m30-l\">\n<ul style=\"margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;\">\n<li>object&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u5bfe\u8c61\u3068\u306a\u308b <span class=\"red\"><strong>ListColumns \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong><\/span>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>index&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u5217\u756a\u53f7\uff08\uff11\u304b\u3089\u59cb\u307e\u308b\u6574\u6570\u5024\uff09\u307e\u305f\u306f\u3001\u898b\u51fa\u3057\uff08\u30d5\u30a3\u30fc\u30eb\u30c9\u540d\uff09\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>\u623b\u308a\u5024&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;<strong>ListColumn \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong><\/li>\n<\/ul>\n<br \/><\/div>\n<\/div>\n<br \/><br \/>\n<h2>ListColumns \u30aa\u30d6\u30b8\u30a7\u30af\u30c8 \u4f7f\u7528\u4f8b<\/h2>\n<div class=\"m30-l\">\n<h3 id=\"vba_sample\">\u30b5\u30f3\u30d7\u30ebVBA\u30bd\u30fc\u30b9<\/h3>\n<pre class=\"lang:vb mark:0 decode:true \" title=\"ListColumns \u30aa\u30d6\u30b8\u30a7\u30af\u30c8 \u4f7f\u7528\u4f8b\" data-url=\"http:\/\/example.co.jp\" >\r\n\u3000\r\nSub Sample_ListObject_ListColumns()\r\n\r\n    Sheets(\"Sheet5\").Activate\r\n    \r\n    Dim mysheet As Worksheet\r\n    Dim mytbl As ListObject\r\n    \r\n    Set mysheet = ActiveWorkbook.ActiveSheet\r\n    \r\n    On Error GoTo ErrH\r\n    \r\n    Set mytbl = mysheet.ListObjects.Item(\"\u6210\u7e3e\u886803\")\r\n    \r\n    '\u30c6\u30fc\u30d6\u30eb\u306b\u5217\u3092\u8ffd\u52a0\r\n    With mytbl.ListColumns.Add\r\n        .Name = \"\u5e73\u5747\"\r\n        .DataBodyRange(1, 1) = \"=[@\u5408\u8a08]\/5\"\r\n    End With\r\n\r\n    '\u5217\u6570\u3092\u8868\u793a\r\n    MsgBox mytbl.ListColumns.Count\r\n        \r\n    Exit Sub\r\n    \r\nErrH:\r\n    MsgBox \"\u30c6\u30fc\u30d6\u30eb\uff08\u30ea\u30b9\u30c8\uff09\u304c\u3042\u308a\u307e\u305b\u3093\"\r\n\r\nEnd Sub\r\n\u3000\r\n  <\/pre>\n<br \/>\n<h3>\u5b9f\u884c\u7d50\u679c<\/h3>\n<p>\u30b5\u30f3\u30d7\u30ebVBA\u30bd\u30fc\u30b9 \u5b9f\u884c\u524d<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/08\/listobject_listcolumns_01.jpg?ssl=1\" rel=\"lightbox[5680]\"><img loading=\"lazy\" src=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/08\/listobject_listcolumns_01.jpg?resize=580%2C452&#038;ssl=1\" alt=\"ListColumns \u30aa\u30d6\u30b8\u30a7\u30af\u30c8 01\" width=\"580\" height=\"452\" class=\"alignnone size-large wp-image-5683\" srcset=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/08\/listobject_listcolumns_01.jpg?resize=580%2C452&amp;ssl=1 580w, https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/08\/listobject_listcolumns_01.jpg?resize=400%2C312&amp;ssl=1 400w, https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/08\/listobject_listcolumns_01.jpg?w=685&amp;ssl=1 685w\" sizes=\"(max-width: 580px) 100vw, 580px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p>\u30b5\u30f3\u30d7\u30ebVBA\u30bd\u30fc\u30b9 \u5b9f\u884c\u5f8c<\/p>\n<p><a href=\"https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/08\/listobject_listcolumns_02.jpg?ssl=1\" rel=\"lightbox[5680]\"><img loading=\"lazy\" src=\"https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/08\/listobject_listcolumns_02.jpg?resize=580%2C410&#038;ssl=1\" alt=\"ListColumns \u30aa\u30d6\u30b8\u30a7\u30af\u30c8 02\" width=\"580\" height=\"410\" class=\"alignnone size-large wp-image-5684\" srcset=\"https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/08\/listobject_listcolumns_02.jpg?resize=580%2C410&amp;ssl=1 580w, https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/08\/listobject_listcolumns_02.jpg?resize=400%2C283&amp;ssl=1 400w, https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/08\/listobject_listcolumns_02.jpg?w=756&amp;ssl=1 756w\" sizes=\"(max-width: 580px) 100vw, 580px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<\/div>\n<br \/><br \/>\n<h2>ListColumn \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u4e3b\u306a\u30e1\u30bd\u30c3\u30c9\u30fb\u30d7\u30ed\u30d1\u30c6\u30a3<\/h2>\n<div class=\"m30-l\">\n<br \/>\n<h3 id=\"listcolum_delete\">Delete \u30e1\u30bd\u30c3\u30c9<\/h3>\n<p>\u30c6\u30fc\u30d6\u30eb\uff08\u30ea\u30b9\u30c8\uff09\u5185\u306e\u6307\u5b9a\u3057\u305f\u5217\uff08\u30d5\u30a3\u30fc\u30eb\u30c9\uff09\u3092\u524a\u9664\u3057\u307e\u3059\u3002<\/p>\n<br \/>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>    <em>object<\/em>.<strong>Delete<\/strong><\/p><\/div>\n<br \/>\n<h4>\u5f15\u6570\u30fb\u623b\u308a\u5024<\/h4>\n<div class=\"m30-l\">\n<ul style=\"margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;\">\n<li>object&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u5bfe\u8c61\u3068\u306a\u308b <span class=\"red\"><strong>ListColumn<\/strong><\/span>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<\/ul><\/div>\n<br \/><br \/>\n<h3>Total \u30d7\u30ed\u30d1\u30c6\u30a3<\/h3>\n<p>\u30c6\u30fc\u30d6\u30eb\uff08\u30ea\u30b9\u30c8\uff09\u5185\u306e\u6307\u5b9a\u3057\u305f\u5217\uff08\u30d5\u30a3\u30fc\u30eb\u30c9\uff09\u306e\u96c6\u8a08\u884c\u306e\u5024\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n<br \/>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>    <span class=\"red\"><strong>\uff1c\u53d6\u5f97\uff1e<\/strong><\/span><br \/>\n    <em>object<\/em>.<strong>Total<\/strong><\/p><\/div>\n<br \/>\n<h4>\u5f15\u6570\u30fb\u623b\u308a\u5024<\/h4>\n<div class=\"m30-l\">\n<ul style=\"margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;\">\n<li>object&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u5bfe\u8c61\u3068\u306a\u308b <span class=\"red\"><strong>ListColumn \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong><\/span>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>\u623b\u308a\u5024&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u96c6\u8a08\u884c\u306e\u5024<\/li>\n<\/ul>\n<br \/>\n<p class=\"caution8\">\u96c6\u8a08\u884c\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u3001\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3059\u3002<\/p>\n<\/p><\/div>\n<br \/><br \/>\n<h3>TotalsCalculation \u30d7\u30ed\u30d1\u30c6\u30a3<\/h3>\n<p>\u30c6\u30fc\u30d6\u30eb\uff08\u30ea\u30b9\u30c8\uff09\u5185\u306e\u6307\u5b9a\u3057\u305f\u5217\uff08\u30d5\u30a3\u30fc\u30eb\u30c9\uff09\u306e\u96c6\u8a08\u884c\u306b\u8868\u793a\u3059\u308b\u5024\u306e\u96c6\u8a08\u65b9\u6cd5\u3092\u53d6\u5f97\u307e\u305f\u306f\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<br \/>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>    <span class=\"red\"><strong>\uff1c\u53d6\u5f97\uff1e<\/strong><\/span><br \/>\n    <em>object<\/em>.<strong>TotalsCalculation<\/strong><\/p>\n<p>    <span class=\"red\"><strong>\uff1c\u8a2d\u5b9a\uff1e<\/strong><\/span><br \/>\n    <em>object<\/em>.<strong>TotalsCalculation<\/strong> = <em>const<\/em><\/p><\/div>\n<br \/>\n<h4>\u5f15\u6570\u30fb\u623b\u308a\u5024<\/h4>\n<div class=\"m30-l\">\n<ul style=\"margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;\">\n<li>object&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u5bfe\u8c61\u3068\u306a\u308b <span class=\"red\"><strong>ListColumn \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong><\/span>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>const&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u96c6\u8a08\u884c\u306b\u8868\u793a\u3059\u308b\u5024\u306e\u96c6\u8a08\u65b9\u6cd5\u3092\u8868\u3059 <em>XlTotalsCalculation \u5217\u6319\u578b<\/em> \u306e\u5b9a\u6570\u307e\u305f\u306f\u305d\u306e\u5024\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\n<table>\n<tr>\n<td align = \"center\" width=\"200\" bgcolor=\"#fffccc\"><strong>\u540d\u524d<\/strong><\/td>\n<td align = \"center\" width=\"50\" bgcolor=\"#fffccc\"><strong>\u5024<\/strong><\/td>\n<td align = \"center\" width=\"400\" bgcolor=\"#fffccc\"><strong>\u8aac\u660e<\/strong><\/td>\n<\/tr>\n<tr>\n<td width=\"200\">xlTotalsCalculationNone<\/td>\n<td align = \"center\" width=\"50\">0<\/td>\n<td width=\"400\">\u8a08\u7b97\u306a\u3057<\/td>\n<\/tr>\n<tr>\n<td width=\"200\">xlTotalsCalculationSum<\/td>\n<td align = \"center\" width=\"50\">1<\/td>\n<td width=\"400\">\u30ea\u30b9\u30c8\u5217\u306e\u3059\u3079\u3066\u306e\u5024\u306e\u5408\u8a08<\/td>\n<\/tr>\n<tr>\n<td width=\"200\">xlTotalsCalculationAverage<\/td>\n<td align = \"center\" width=\"50\">2<\/td>\n<td width=\"400\">\u5e73\u5747<\/td>\n<\/tr>\n<tr>\n<td width=\"200\">xlTotalsCalculationCount<\/td>\n<td align = \"center\" width=\"50\">3<\/td>\n<td width=\"400\">\u7a7a\u3067\u306a\u3044\u30bb\u30eb\u306e\u30ab\u30a6\u30f3\u30c8<\/td>\n<\/tr>\n<tr>\n<td width=\"200\">xlTotalsCalculationCountNums<\/td>\n<td align = \"center\" width=\"50\">4<\/td>\n<td width=\"400\">\u6570\u5024\u306e\u3042\u308b\u30bb\u30eb\u306e\u30ab\u30a6\u30f3\u30c8<\/td>\n<\/tr>\n<tr>\n<td width=\"200\">xlTotalsCalculationMin<\/td>\n<td align = \"center\" width=\"50\">5<\/td>\n<td width=\"400\">\u30ea\u30b9\u30c8\u306e\u6700\u5c0f\u5024<\/td>\n<\/tr>\n<tr>\n<td width=\"200\">xlTotalsCalculationMax<\/td>\n<td align = \"center\" width=\"50\">6<\/td>\n<td width=\"400\">\u30ea\u30b9\u30c8\u306e\u6700\u5927\u5024<\/td>\n<\/tr>\n<tr>\n<td width=\"200\">xlTotalsCalculationStdDev<\/td>\n<td align = \"center\" width=\"50\">7<\/td>\n<td width=\"400\">\u6a19\u6e96\u504f\u5dee\u5024<\/td>\n<\/tr>\n<tr>\n<td width=\"200\">xlTotalsCalculationVar<\/td>\n<td align = \"center\" width=\"50\">8<\/td>\n<td width=\"400\">\u5909\u6570<\/td>\n<\/tr>\n<tr>\n<td width=\"200\">xlTotalsCalculationCustom<\/td>\n<td align = \"center\" width=\"50\">9<\/td>\n<td width=\"400\">\u30e6\u30fc\u30b6\u30fc\u8a2d\u5b9a\u306e\u8a08\u7b97<\/td>\n<\/tr>\n<\/table>\n<p>\n      <\/li>\n<\/ul>\n<br \/><\/div>\n<br \/><br \/>\n<h3>\u305d\u306e\u4ed6<\/h3>\n<br \/>\n<table>\n<tr>\n<td align = \"center\" width=\"250\" bgcolor=\"#ffffccc\"><strong>\u30d7\u30ed\u30d1\u30c6\u30a3<\/strong><\/td>\n<td align = \"center\" width=\"400\" bgcolor=\"#ffffccc\"><strong>\u5185\u5bb9<\/strong><\/td>\n<\/tr>\n<tr>\n<td width=\"250\">Range \u30d7\u30ed\u30d1\u30c6\u30a3<\/td>\n<td width=\"400\">\u30c6\u30fc\u30d6\u30eb\uff08\u30ea\u30b9\u30c8\uff09\u5185\u306e\u6307\u5b9a\u3057\u305f\u5217\uff08\u30d5\u30a3\u30fc\u30eb\u30c9\uff09\u306e\u30bb\u30eb\u7bc4\u56f2\u3092\u53d6\u5f97\u3057\u307e\u3059\uff08Range \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff09\u3002<\/td>\n<\/tr>\n<tr>\n<td width=\"250\">DataBodyRange \u30d7\u30ed\u30d1\u30c6\u30a3<\/td>\n<td width=\"400\">\u30c6\u30fc\u30d6\u30eb\uff08\u30ea\u30b9\u30c8\uff09\u5185\u306e\u6307\u5b9a\u3057\u305f\u5217\uff08\u30d5\u30a3\u30fc\u30eb\u30c9\uff09\u306e\u898b\u51fa\u3057\u306e\u5217\u3001\u96c6\u8a08\u5217\u3092\u9664\u3044\u305f\u30bb\u30eb\u7bc4\u56f2\u3092\u53d6\u5f97\u3057\u307e\u3059\uff08Range \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff09\u3002<\/td>\n<\/tr>\n<tr>\n<td width=\"250\">Name \u30d7\u30ed\u30d1\u30c6\u30a3<\/td>\n<td width=\"400\">\u30c6\u30fc\u30d6\u30eb\uff08\u30ea\u30b9\u30c8\uff09\u5185\u306e\u6307\u5b9a\u3057\u305f\u5217\uff08\u30d5\u30a3\u30fc\u30eb\u30c9\uff09\u306e\u898b\u51fa\u3057\uff08\u30d5\u30a3\u30fc\u30eb\u30c9\u540d\uff09\u3092\u53d6\u5f97\u3057\u307e\u3059\uff08\u6587\u5b57\u5217\u578b\uff1aString\uff09\u3002<\/td>\n<\/tr>\n<tr>\n<td width=\"250\">Index \u30d7\u30ed\u30d1\u30c6\u30a3<\/td>\n<td width=\"400\">\u30c6\u30fc\u30d6\u30eb\uff08\u30ea\u30b9\u30c8\uff09\u5185\u306e\u6307\u5b9a\u3057\u305f\u5217\uff08\u30d5\u30a3\u30fc\u30eb\u30c9\uff09\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u756a\u53f7\u3092\u53d6\u5f97\u3057\u307e\u3059\uff08\u9577\u6574\u6570\u578b\uff1aLong\uff09\u3002<\/td>\n<\/tr>\n<\/table>\n<p><\/p>\n<\/div>\n<br \/><br \/>\n<h2>ListColumn \u30aa\u30d6\u30b8\u30a7\u30af\u30c8 \u4f7f\u7528\u4f8b<\/h2>\n<div class=\"m30-l\">\n<h3 id=\"vba_sample\">\u30b5\u30f3\u30d7\u30ebVBA\u30bd\u30fc\u30b9<\/h3>\n<pre class=\"lang:vb mark:0 decode:true \" title=\"ListColumn \u30aa\u30d6\u30b8\u30a7\u30af\u30c8 \u4f7f\u7528\u4f8b\" data-url=\"http:\/\/example.co.jp\" >\r\n\u3000\r\nSub Sample_ListObject_ListColumn()\r\n\r\n    Sheets(\"Sheet5\").Activate\r\n    \r\n    Dim mysheet As Worksheet\r\n    Dim mytbl As ListObject\r\n    Dim str As String\r\n    Dim i As Long\r\n    \r\n    Set mysheet = ActiveWorkbook.ActiveSheet\r\n    \r\n    On Error GoTo ErrH\r\n    \r\n    Set mytbl = mysheet.ListObjects.Item(\"\u6210\u7e3e\u886803\")\r\n    \r\n        With mytbl\r\n            '\u300c\u5408\u8a08\u300d\u5217\u306e\u96c6\u8a08\u65b9\u6cd5\u3092\u300c\u5408\u8a08\u300d\u306b\u8a2d\u5b9a\r\n            .ListColumns.Item(\"\u5408\u8a08\").TotalsCalculation = xlTotalsCalculationSum\r\n        \r\n            '\u96c6\u8a08\u884c\u3092\u8868\u793a\r\n            .ShowTotals = True\r\n        \r\n            '\u300c\u5e73\u5747\u300d\u5217\u3092\u524a\u9664\r\n            .ListColumns(\"\u5e73\u5747\").Delete\r\n    \r\n        End With\r\n    \r\n    Exit Sub\r\n    \r\nErrH:\r\n    MsgBox \"\u30c6\u30fc\u30d6\u30eb\uff08\u30ea\u30b9\u30c8\uff09\u304c\u3042\u308a\u307e\u305b\u3093\"\r\n\r\nEnd Sub\r\n\u3000\r\n  <\/pre>\n<br \/>\n<h3>\u5b9f\u884c\u7d50\u679c<\/h3>\n<p>\u30b5\u30f3\u30d7\u30ebVBA\u30bd\u30fc\u30b9 \u5b9f\u884c\u524d<\/p>\n<p><a href=\"https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/08\/listobject_listcolumn_01.jpg?ssl=1\" rel=\"lightbox[5680]\"><img loading=\"lazy\" src=\"https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/08\/listobject_listcolumn_01.jpg?resize=580%2C341&#038;ssl=1\" alt=\"ListColumn \u30aa\u30d6\u30b8\u30a7\u30af\u30c8 01\" width=\"580\" height=\"341\" class=\"alignnone size-large wp-image-5685\" srcset=\"https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/08\/listobject_listcolumn_01.jpg?resize=580%2C341&amp;ssl=1 580w, https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/08\/listobject_listcolumn_01.jpg?resize=400%2C235&amp;ssl=1 400w, https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/08\/listobject_listcolumn_01.jpg?w=758&amp;ssl=1 758w\" sizes=\"(max-width: 580px) 100vw, 580px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p>\u30b5\u30f3\u30d7\u30ebVBA\u30bd\u30fc\u30b9 \u5b9f\u884c\u5f8c<\/p>\n<p><a href=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/08\/listobject_listcolumn_02.jpg?ssl=1\" rel=\"lightbox[5680]\"><img loading=\"lazy\" src=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/08\/listobject_listcolumn_02.jpg?resize=580%2C342&#038;ssl=1\" alt=\"ListColumn \u30aa\u30d6\u30b8\u30a7\u30af\u30c8 02\" width=\"580\" height=\"342\" class=\"alignnone size-large wp-image-5687\" srcset=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/08\/listobject_listcolumn_02.jpg?resize=580%2C342&amp;ssl=1 580w, https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/08\/listobject_listcolumn_02.jpg?resize=400%2C236&amp;ssl=1 400w, https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/08\/listobject_listcolumn_02.jpg?w=756&amp;ssl=1 756w\" sizes=\"(max-width: 580px) 100vw, 580px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<\/div>\n<br \/><br \/>\n","protected":false},"excerpt":{"rendered":"<p>ListColumns \u30d7\u30ed\u30d1\u30c6\u30a3 ListColumns \u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306f\u3001\u30c6\u30fc &#8230; <\/p>\n","protected":false},"author":1,"featured_media":5720,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"amp_status":"","spay_email":"","jetpack_publicize_message":""},"categories":[907],"tags":[928,937,932,939,938,936,933,934,927,929,930,931,914,63,935,38,908],"jetpack_featured_media_url":"https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/08\/listobject_listcolumns_01-580x452-1.jpg?fit=580%2C452&ssl=1","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4Ye9i-1tC","_links":{"self":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/5680"}],"collection":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/comments?post=5680"}],"version-history":[{"count":7,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/5680\/revisions"}],"predecessor-version":[{"id":5719,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/5680\/revisions\/5719"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media\/5720"}],"wp:attachment":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media?parent=5680"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/categories?post=5680"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/tags?post=5680"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}