③配列
関連タイピング
-
プレイ回数258長文英字328打
-
プレイ回数329長文英字293打
-
プレイ回数5371長文英字1327打
-
プレイ回数391長文かな360打
問題文
(dim myarray1 as variant)
Dim MyArray1 As Variant
(dim myarray2() as variant)
Dim MyArray2() As Variant
(dim myarray3() as variant)
Dim MyArray3() As Variant
(dim i as long)
Dim i As Long
(dim j as long)
Dim j As long
(dim ix as long:ix=0)
Dim ix As long:ix=0
(myarray1=cells(,).currentregion.value)
MyArray1=cells(,).CurrentRegion.Valu
(for i=1 to ubound(myarray1,1))
For i=1 to Ubound(MyArray1,1)
(if myarray1(i, ) then ix=ix+1)
If MyArray1(i, ) then ix=ix+1
(redim preserve myarray2( ,ix))
Redim Preserve MyArray2( ,ix)
(myarray2(1,ix)=myarray1(i, ))
MyArray2(1,ix)=MyArray1(i, )
(myarray2(2,ix)=myarray1(i, ))
MyArray2(2,ix)=MyArray1(i, )
(end if next i)
End if Next i
(redim myarray3(ubound(myarray2,2))
ReDim MyArray3(Ubound(MyArray2,2)
(,ubound(myarray2,1)))
,UBound(MyArray2,1))
(for i=1 to ubound(myarray2,2))
For i=1 to UBound(MyArray2,2)
(for j=1 to ubound(myarray2,1))
For j=1 to UBound(MyArray2,1)
(myarray3(i,j)=myarray2(j,i))
MyArray3(i,j)=MyArray2(j,i)
(next j next i)
Next j Next i
(range(cells(1,1))
Range(cells(1,1)
(,cells(ubound(myarray3,1))
,Cells(UBound(MyArray3,1)
(,ubound(myarray3,2))).value=myarray3)
,UBound(MyArray3,2).Value=MyArray3
(workbooks(myfile.name))
Workbooks(MyFile.Name)
(.close savechanges:=false)
.Close savechanges:=False
(myfile.name=myfso.getbasename(myf) &)
MyFile.Name=MyFSO.GetBaseName(MyF) &
(application.screenupdating=true)
Application.ScreenUpdating=True
(application.displayalerts=true)
Application.DisplayAlerts=True