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.
コードをスクリーニングすると、コードを終了するために 2 つの方法を使用していることがわかりました ( = の後)。どちらがより良い使用方法なのか知りたいですか?
例:
1)ActiveSheet.Columns("A:BG").EntireColumn.ColumnWidth = [AP2]
ActiveSheet.Columns("A:BG").EntireColumn.ColumnWidth = [AP2]
2)ActiveSheet.Columns("A:BG").EntireColumn.ColumnWidth = Range("AP2").Value
ActiveSheet.Columns("A:BG").EntireColumn.ColumnWidth = Range("AP2").Value
何か意見はありますか?