Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私がやっている
Cells(101, 50).Value = Cells(100, 50).Value
Cells(100,50)には「001234」があります。
問題は、ステートメントの実行後に Cells(101,50) が 1234 になることです。
助けてくれてありがとう。
別の方法
Sub Sample() Cells(101, 50).Formula = "=TEXT(" & Cells(100, 50).Value & ",""000000"")" End Sub
これを試して:
Cells(101,50).Value = "'" & Cells(100,50).Value
または、ターゲット セルの形式をテキストに変更します。