- ©«¤l
- 1018
- ¥DÃD
- 15
- ºëµØ
- 0
- ¿n¤À
- 1058
- ÂI¦W
- 0
- §@·~¨t²Î
- win7 32bit
- ³nÅ骩¥»
- Office 2016 64-bit
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ®ç¶é
- µù¥U®É¶¡
- 2012-5-9
- ³Ì«áµn¿ý
- 2022-9-28
|
¥»©«³Ì«á¥Ñ stillfish00 ©ó 2013-1-2 16:27 ½s¿è
¦^´_ 1# acdx
¦n¹³¨S¤°»ò²«K¤èªk , °²³]§Aªºarray¤U³£¬°1
1.ª½±µ´£¨ú¤¸¯À- Dim ar, i
- ReDim ar(1 To 12, 1 To 8)
- For i = 1 To 12
- ar(i, 1) = HdB(i, 1)
- ar(i, 2) = MdB(i, 1)
- 'ar(i, 3) = ....
- '....
- 'ar(i, 8) = ....
- Next i
½Æ»s¥N½X 2.§Q¥Î¤u§@ªí(·Pı®¼®ö¶O)- Dim ar
- With Workbooks.Add
- With .Sheets(1)
- .[A1].Resize(12) = HdB
- .[A1].Resize(12).Offset(, 1) = MdB
- '.[A1].Resize(12).Offset(, 2) = ...
- '...
- '.[A1].Resize(12).Offset(, 7) = ...
- ar = .[A1].Resize(12, 8)
- End With
- .Close savechanges:=False
- End With
½Æ»s¥N½X 3. §ï¥ÎEvaluate/Join (°}¦C¤¸¯À¤£§t³r¸¹©Î¤À¸¹¦r¤¸®É¤~¥i¥Î)- Dim ar
- ar = Application.Transpose(Evaluate("{" & _
- Join(Application.Transpose(HdB), ",") & ";" & _
- Join(Application.Transpose(MdB), ",") & _
- "}"))
½Æ»s¥N½X |
|