ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] ¿ï¾ÜÀÉ®×Âন¤å¦rÀÉ°ÝÃD.

[µo°Ý] ¿ï¾ÜÀÉ®×Âন¤å¦rÀÉ°ÝÃD.

1.¿ïÀÉ[21.XLSX]Âন21.TXT¥i¥H,¬°¦ó¿ïÀÉ[22.XLSX]Âন22.TXT¤£¦æ,°ÝÃD¦b¨º¸Ì?
2.¥i§_[«ü©w¤u§@ªí]:
MP1=Range(¡§B7¡¨)
'With Workbooks.Open(xlsPath, , True).Sheets(MP1)  '¦p¦ó«ü©w¤u§@ªí=>¤£¦æ
With Workbooks.Open(xlsPath, , True).Sheets(1)         '¥i¦æ.

aaa.rar (39.4 KB)

§ù¤p¥­

¦^´_ 2# Andy2483 ·PÁ«e½ú¦^ÂÐ,21-1.TXT¬O§Ú¶·¨Dªº§¹¦¨ÀÉ,§ïWith Workbooks.Open(xlsPath, , True).Sheets(Val(MP1))«á,²£¥Í21.TXTªºÀɮפº®e·|Åܦ¨ 2.58003E+50
2.58003E+50
2.58003E+50
2.58003E+50
2.58003E+50
2.58003E+50
2.58003E+50
2.58003E+50
2.58003E+50
2.58003E+50

21-1.rar (424 Bytes)

§ù¤p¥­

TOP

¦^´_ 4# Andy2483 ·|¤£·|¬Oª©¥»°ÝÃD,§Úªº¬O2010ª©,ÁÙ¬O¤£¦æ.
§ù¤p¥­

TOP

¦^´_ 6# Andy2483 ·PÁ«e½ú¦h¦¸¦^ÂÐ,§Ú²£¥ÍÀɬO³o¼Ë.

22txt.jpg (24.86 KB)

22txt.jpg

§ù¤p¥­

TOP

¦^´_ 8# Andy2483
With Workbooks.Open(xlsPath, , True).Sheets(1)
      .Cells.NumberFormatLocal = "@"
¨ú²Ä¤@¤u§@ªí¥¿±`¤F.


With Workbooks.Open(xlsPath, , True).Sheets(2)    ©Î   With Workbooks.Open(xlsPath, , True).Sheets(val(mp1)
      .Cells.NumberFormatLocal = "@"
³o­ÓÁÙ¬O¤£¦æ...........
§ù¤p¥­

TOP

¥»©«³Ì«á¥Ñ dou10801 ©ó 2023-10-30 13:51 ½s¿è

¦^´_ 10# Andy2483
With Workbooks.Open(xlsPath, , True).Sheets(2)
1.¿ï¨ú22.XLSX¬°¨Ò.
2,·|²£¥Í[¤u§@ªí¤@]ªº¸ê®Æ,¥B¤£¬O¦r¦ê²Õ¦X.
mcs = "" & mcs1 & Cells(R, MDS2) & Format(Cells(R, MDS3), "00000000000") & "00" & mcs2 & Cells(R, MDS4) & String(p2, " ")

22txt.jpg (41.44 KB)

22txt.jpg

¤u§@ªí1.jpg (167.11 KB)

¤u§@ªí1.jpg

¤u§@ªí2.jpg (153.34 KB)

¤u§@ªí2.jpg

§ù¤p¥­

TOP

¦^´_ 12# Andy2483
¤èªk1.:
With Workbooks.Open(xlsPath, , True).Sheets(Val(MP1))
"3"¬O¦r¦ê,«ü©w3¯Á¤Þ¸¹¤u§@ªí¥²¶·±N¦r¦ê "3" Âà¤Æ¬°¼Æ­È 3

¤èªk2.:
«Å§i¬°µu¾ã¼Æ:
Dim MP1%
MP1 = Range("B7")
With Workbooks.Open(xlsPath, , True).Sheets(MP1)

mcs = "'" & mcs1 & Cells(R, MDS2) & Format(Cells(R, MDS3),~~

With Workbooks.Open(xlsPath, , True).Sheets(2)
    .Activate
  .Cells.NumberFormatLocal = "@"

¦¹¦¸°Ýµª,·PÁ«e½ú,¤£§[½ç±Ð«ü¾É,¾Ç¨ì«Ü¦h¤p²Ó¸`,·P®¦·P®¦.
§ù¤p¥­

TOP

¦^´_ 14# Andy2483
¥H¿ï22.XLSX,²Ä3¤u§@ªí¬°¨Ò,¥½µ§¸ê®Æ,[¦X­p]¦r¼Ë¬°¦ó®³¤£±¼.½Ð«e½ú«üÂI,ÁÂÁÂ.
If Cells(R, 3) <> "" Then    '¤w§PÂ_CÄæªÅ¥Õ¤£¥[¤JBRR(),¦ý²£¥ÍÀÉÁÙ¬O¦³[¦X­p]¦r¼Ë.
            p1 = Len(Cells(R, MDS4))  '³ÆµùÄæªø«×.
            p2 = 29 - p1              '¸ÉªÅ¥Õªø«×
            mcs = "" & mcs1 & Cells(R, MDS2) & Format(Cells(R, MDS3), "00000000000") & "00" & mcs2 & Cells(R, MDS4) & String(p2, " ")
            brr(R, 1) = mcs
          End If
§ù¤p¥­

TOP

¦^´_ 17# Andy2483
¾Ç¨ì¥t¤@ºØ¤è¦¡,·P¿E¤£ºÉ.
§ù¤p¥­

TOP

¦^´_ 20# ­ã´£³¡ªL
·PÁÂ:­ã´£³¡ªL,«ü¾É.¥N½Xµ¹ªì¾ÇªÌ§ó²M·¡¾Ç²ß,·P®¦.
§ù¤p¥­

TOP

        ÀR«ä¦Û¦b : ¡i°µ¤Hªº¶}©l¡j¨C¤@¤Ñ³£¬O¬G¤Hªº¶}©l¡A¨C¤@­Ó®É¨è³£¬O¦Û¤vªºÄµ±§¡C
ªð¦^¦Cªí ¤W¤@¥DÃD