質問するログイン新規登録

質問編集履歴

1

コードの追加を行いました。

2020/05/28 07:04

投稿

tokoro47
tokoro47

スコア7

title CHANGED
File without changes
body CHANGED
@@ -14,5 +14,15 @@
14
14
 
15
15
  ![イメージ説明](c878bc9070fc28e1fd44d6b8d5a240f4.jpeg)
16
16
 
17
+ ```VBA
18
+ Dim i
19
+ Dim iWidth As Double: iWidth = 0
20
+
21
+ ' 結合セルの幅を取得
22
+ For i = 1 To Range(結合セル).MergeArea.Columns.Count
23
+ iWidth = iWidth + outputSheet.Range(cell).MergeArea.Item(i).ColumnWidth
24
+ Next
25
+ ```
26
+
17
27
  ### 補足情報(FW/ツールのバージョンなど)
18
28
  Excel 2016