トップ 差分 一覧 ping ソース 検索 ヘルプ PDF RSS ログイン

Excel VBA セルからテキストを取得



目次



記事一覧

キーワード

Excel VBA セルからテキストを取得する


 セルの値をテキストとして取得

Cells(r, c).value ' value
Cells(r, c).text  ' text

 セルの書式をテキストとして設定

Cells(r, c).NumberFormatLocal = "@"

 NumberFormatLocal

"@"       '文字列
"0_ "     '数値
"G/標準"  '標準

指定されたパートは存在しません。



YAGI Hiroto (piroto@a-net.email.ne.jp)
twitter http://twitter.com/pppiroto

Copyright© 矢木 浩人 All Rights Reserved.