0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

VBAでシートコピーしたら数値の表示形式が変わった

Posted at

結論からいうと

これ↓。
Excel で VBA の WorkSheets.Copy メソッドを使ってシートコピーを行うとセルの書式が引き継がれない場合がある - Microsoft公式

しょうもないやらかし

解決策:
#,##0;[赤](#,##0)
これ使えって書いてあるけど使ってるよ!
と思ってたらこれ↓になってた。
#,##0_);[赤](#,##0)

なにこれ?と思ったら会計系の書式↓から通貨記号取ったやつだったのでした。
$#,##0_);[赤]($#,##0)

おそまつ。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?