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

[µo°Ý] ¦hµ§EXCEL·j´Mªº¥Îªk[¤w¸Ñ¨M 2011-05-11]

¦^´_ 10# mark15jill
3.¨º­Ó­ì©l½X ¬O®M¥Î¤j¤j±zªº   ¥i¬O ­è¦³¸ÕÅç¹L ¤£¯à ¤£¹L«á¨Ó¦³·s¼W§Ú¦Cªº¨â¦æ ´NOK¤F...´N¬Osheet1 Åܦ¨ TEXT¦WºÙ  (¤£ª¾¹D­þ¥X¿ù-0-)
¥i¶Ç¤W§¹¾ãµ{¦¡½X¬Ý¬Ý??

TOP

³o¨Ç¬O¥H¤j¤jªºµ{¦¡½X ¥[¥H©µ¦ùªº..
  1. Sub «ö¶s5_Click()
  2.     Dim Sh As Object

  3.     On Error Resume Next

  4.     Set Sh = ThisWorkbook.Sheets(1)

  5.    
  6.     With Workbooks.Add(xlWBATWorksheet)

  7.         Sh.UsedRange.Offset(1).Copy .Sheets(1).[A1]

  8.          .SaveAs ThisWorkbook.Path & "\" & Sh.TextBox1

  9.         .Close 0
  10.           Sheets("Sheet1").Select
  11.          Sheets("Sheet1").Name = Sh.TextBox1
  12.     End With

  13. End Sub
½Æ»s¥N½X
¦^´_ 11# GBKEE

TOP

¦^´_ 12# mark15jill
­×§ïªºµ{¦¡,¯uªº¦³¹F¨ì§A¥Ø¦a¶Ü?
Sub «ö¶s5_Click()
    Dim Sh As Object
    On Error Resume Next      'On Error : ·íµ{¦¡°õ¦æ®É¦³¿ù»~®É,   Resume Next : Ä~Äò³B¸Ì¤U¤@­Óµ{¦¡½X
                                               
    Set Sh = ThisWorkbook.Sheets(1)
    With Workbooks.Add(xlWBATWorksheet)
        Sh.UsedRange.Offset(1).Copy .Sheets(1).[A1]
         .SaveAs ThisWorkbook.Path & "\" & Sh.TextBox1  

          'SaveAs: ·í¥Ø¿ý¤¤¦³¬Û¦PªºÀɦW ¨t²Î·|¸ß°Ý¬O§_Âл\­ìÀÉ®×  ¦p¿ï¾Ü [§_] ©Î[¨ú®ø] ³£·|²£¥Í¿ù»~­È
          'On Error ´N¬O¦b³B¸Ì³o¿ù»~
        .Close 0                                 '¦p¿ï¾Ü [§_] ©Î[¨ú®ø]: ÀÉ®×Ãö³¬¥B¤£¦sÀÉ
         Sheets("Sheet1").Select   'ÀɮפwÃö³¬:½Ð°Ý³o¸Ìªº Sheets("Sheet1")¬O­þ¤@­Ó??
         Sheets("Sheet1").Name = Sh.TextBox1
    End With
End Sub

TOP

¥»©«³Ì«á¥Ñ mark15jill ©ó 2011-5-11 10:39 ½s¿è

End Sub[/code]¦^´_ 13# GBKEE
­è­èµo²{ §Ú¨º¨â¦æ¦ì¸m¦³¥´¿ù= =....(À³¸Ó¬O«á¨Ó§Ú¤S¶Ã§ï ¨Sª`·N¨ì ©êºp£½£¿)
­ì©l½X®t§O ¤w¸gªþ¥[ÀÉ®×

¥H¤U¬O¨âªÌªº¥N½X

¥xÆWªº³¡¥÷
Sub «ö¶s5_Click()
    Dim Sh As Object

    On Error Resume Next

    Set Sh = ThisWorkbook.Sheets(1)

   
    With Workbooks.Add(xlWBATWorksheet)
          Sheets("sheet1").Select      
          Sheets("sheet1").Name = Sh.TextBox1 ' ·s¼Wªº¨º­ÓÀɮפºªº¦WºÙ¬° TEXTªº¦r²´
          Sh.UsedRange.Offset(1).Copy .Sheets(1).[A1]

         .SaveAs ThisWorkbook.Path & "\" & Sh.TextBox1

        .Close 0

    End With

End Sub


¬ü°êªº³¡¥÷
Sub «ö¶s5_Click()
    Dim Sh As Object

    On Error Resume Next

    Set Sh = ThisWorkbook.Sheets(1)

   
    With Workbooks.Add(xlWBATWorksheet)

        Sh.UsedRange.Offset(1).Copy .Sheets(1).[A1]

         .SaveAs ThisWorkbook.Path & "\" & Sh.TextBox1

        .Close 0
        ' Sheets("Sheet1").Select
        ' Sheets("Sheet1").Name = Sh.TextBox1
    End With

End Sub


ªþ¥[Àɮפº¦³¨â­Ó TXT ©M EXCELÀÉ®×  ¤À§O¬° ¬ü°ê©M ¥xÆW
¬d¸ß¤ñ¹ï.rar (10.14 KB)

TOP

¦^´_ 14# mark15jill
9¼Óµ{¦¡½X¤¤ªº .Sheets(1).Name = Sh.TextBox1      '¤u§@ªí¦WºÙ
        ³o¬õÂIªí¥Ü¦b©Ò·s¼Wªº¬¡­¶Ã¯¸Ì ¤£¥²¦A¦³   Sheets(1).Select

TOP

¦^´_ 15# GBKEE


    ¦hÁ«ü¾É><
²ßºD©Ê³£·|¦h«ü©w¨º­Ó...

TOP

        ÀR«ä¦Û¦b : ¥ÌÄ@°µ¡BÅw³ß¨ü¡C
ªð¦^¦Cªí ¤W¤@¥DÃD