Excel VBA セルからテキストを取得する
セルの値をテキストとして取得
Cells(r, c).value ' value Cells(r, c).text ' text
セルの書式をテキストとして設定
Cells(r, c).NumberFormatLocal = "@"
NumberFormatLocal
"@" '文字列 "0_ " '数値 "G/標準" '標準
指定されたパートは存在しません。
Cells(r, c).value ' value Cells(r, c).text ' text
Cells(r, c).NumberFormatLocal = "@"
"@" '文字列 "0_ " '数値 "G/標準" '標準
指定されたパートは存在しません。
YAGI Hiroto (piroto@a-net.email.ne.jp)
twitter http://twitter.com/pppiroto
Copyright© 矢木 浩人 All Rights Reserved.