![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
ノンプロ研中級プログラミング講座【VBAコース第2期】第6回
-
ntakahashi0505
- 946
- 1
- 0
- 0
![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
〇テーブル列の操作 ・ListColumnオブジェクトの取得 ListColumnsコレクション[._Default](Index) *index:インデックスを表す整数/見出しを表す文字列 ・テーブル列の見出し ListColumnオブジェクト.Name ・インデックスの取得 ListColumnオブジェクト.Index #ノンプロ研 #VBA中級講座
2021-04-02 21:23:11![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
ListColumnオブジェクトはデータ行(DataBodyRange)・集計行(Total)だけでも取れる #ノンプロ研
2021-04-02 21:23:25![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
●テーブル列のセル範囲の取得 ・全体: ListColumnオブジェクト.Range ・データ行: ListColumnオブジェクト.DataBodyRange ・集計行: ListColumnオブジェクト.Total #ノンプロ研 #VBA中級講座
2021-04-02 21:24:40![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
・テーブル列の追加 ListColumnsコレクション.Add([Position]) *Postion:インデックスを表す整数 ※戻り値は追加したListColumnオブジェクト #ノンプロ研 #VBA中級講座
2021-04-02 21:31:50![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
WorksheetFunction.Transposeを使って配列を転置する。 その後にListColumns.Addの引数に転置した配列を指定する。 するとテーブルに列を追加できる。 #ノンプロ研
2021-04-02 21:33:11![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
・配列を転置する(行列の入れ替え) WorksheetFunctionオブジェクト.Transpose(array) yumem.cocolog-nifty.com/excelvba/2011/… #ノンプロ研 #VBA中級講座
2021-04-02 21:36:08![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
テーブルにしたら場所を動かしてもいいし、途中に列を挿入されても全然OKということか。全部テーブルに変えたくなってきた。 #ノンプロ研
2021-04-02 21:39:07![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
文字列の中の文字列を表す場合は ダブルクォーテーションを2つ付けます 例:演習6-12 ""Y"" .DataBodyRange(1).Formula = "=DATEDIF([@birthday], TODAY(), ""Y"")" #ノンプロ研 #VBA中級講座
2021-04-02 21:45:04![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
もくもく会 04/03(土) 13:00~@Discord 04/13(火) 21:00~@Discord 04/18(日) 12:45~@Zoom ”親子もくもく会:3Dプリンターで遊ぼう” 04/20(火) 21:00~@Discord ※親子もくもく会はお子様参加可能です #ノンプロ研
2021-04-02 21:53:37![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
定例会 『Power Automate Desktopでノンプログラマーの仕事はどうなる?』 04/22(木) 20:00~@Zoom #ノンプロ研
2021-04-02 21:53:38![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
ノンプロ研での講座 仮申し込みはこちらから(早いもん勝ちです✨) tonari-it.com/nonpro-beginne… #ノンプロ研
2021-04-02 21:55:47