§Ú¦³¤@ÓEXCELÀÉ®×, ¤º¦³¨âÓ¤u§@ªí, ¨CÓ¤u§@ªí³£¨Ï¥Î§Ö±¶«ö¶s°õ¦æ¤U¦CªºVBA CODE, ±N¤u§@ªí«ö«ü©w¸ô®|¥t¦s·sÀÉ®×.
°ÝÃD(1) ¬O¦³¨Ç®ÉÔ°õ¦æVBA CODE®É, ·|Åã¥Ü¥t¦sÀɤw¸g¦s¦b, ¦ý¨ä¹ê·|¦b«ü©w¸ô®|¤º, ¦Û°Ê¼W¥[¤F¤@¦ó"PATH"ªºFOLDER, ¦A¦bFOLDER ¤º¥t¦s¦WºÙ¬O"FILENAME"ªº¤u§@ªí. ¤£ª¾¬O§_¨âÓ¤u§@ªí¦@¥Î¤@ÓVBA CODE¥X²{°ÝÃD? §Æ±æ½ç±Ð!
°ÝÃD(2) ¦pªG¥t¦s·sÀÉ®×®É, ¤w¦³¬Û¦P¦WºÙÀɮצs¦b,¥i§_n¨ú®ø¦sÀÉ, §ï¬°¤´µM¦sÀÉ, ¦ý¦Û¦æ¦bÀɮצWºÙ«á¥[¤WV1, V2, V3µ¥, ¦p¦¹Ãþ±À?- Sub activeSave_2c()
- Application.ScreenUpdating = False
- Dim filename As String, fPath As String
- filename = [S2]: fPath = [S3]: If Dir(fPath, vbDirectory) = "" Then MkDir fPath
- If Dir(fPath & "\" & filename & ".xlsx") <> "" Then
- MsgBox "«ü©wªº " & filename & ".xlsx ¤w¸g¦s¦b! ¨S¦³°õ¦æ¦sÀÉ": Exit Sub
- End If
- ActiveSheet.Copy
- [A1:G100].Value = [A1:G100].Value
- [H:Y].Delete: [A1].Select
- ActiveWorkbook.SaveAs filename:=fPath & "\" & filename & ".xlsx"
- ActiveWorkbook.Close
- MsgBox "¤w¸g·s¼WÀÉ®×": ThisWorkbook.Activate
- End Sub
½Æ»s¥N½X |