0
1

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 5 years have passed since last update.

VBAで実装時に気づいたことメモ

Last updated at Posted at 2018-11-28

VBAで社内用にツールを作ることになったので、気づいたことメモを記載していくことにしました。

・数値から文字列への変換
数値から文字列への変換するにはCStr()とStr()があります。

Str()は、符号の1桁分が必ず確保されていて、数値が正の時の戻り値の頭にはスペース(空白)が入ります。
Cstr()は、プラスのときにスペースは入りません。

単純に他の文字列と結合したい場合にはCstr()を使うようにする

0
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?