対象のシート.Range(対象とする行の先頭のセル).End(xlToRight).Column
Sub RetusSuuSample_01() Dim sheetXXX As Worksheet Dim RetusSuu As Worksheet Set sheetXXX = Worksheets("Sheet1") RetusSuu = sheetXXX.Range("A1").End(xlToRight).Column End Sub
Copyright © 2010 Office Tanabe. All Rights Reserved.