Á~¸ê©î¤ÀÀɮ׫á¡A¦p¦ó¥[¤W¶}±Ò±K½X
- ©«¤l
- 455
- ¥DÃD
- 111
- ºëµØ
- 0
- ¿n¤À
- 563
- ÂI¦W
- 234
- §@·~¨t²Î
- Windows 10
- ³nÅ骩¥»
- Office 2019
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2013-11-7
- ³Ì«áµn¿ý
- 2024-11-25
|
Á~¸ê©î¤ÀÀɮ׫á¡A¦p¦ó¥[¤W¶}±Ò±K½X
¦U¦ì¥ý¶i¤j®a¦n¡A
§Ú¦bºô¸ô¤W¦³§ä¨ì¤@Ó±NÁ~¸ê©î¤À¦¨¦UÓÀÉ®×
§Ú¬O·Q°Ý¬O§_¥i¥H¨Ì¾ÚÄæ¦ì(J)¡A§@¬°³]©w¨CÓ©î¤À«áªºEXCELÀɮסA¤@¶}±Ò®É´Nn¿é¤J¥¦¥»¨ªº±K½X
¬O§_¥i¥H½Ð¦U¦ì¥ý¶i¨ó§U¬Ý¤@¤U
Thanks!
Excel_VBA-©î¤ÀÁ~¸ê.rar (13.36 KB)
|
|
Just do it.
|
|
|
|
|
- ©«¤l
- 79
- ¥DÃD
- 33
- ºëµØ
- 0
- ¿n¤À
- 123
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- x64
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW
- µù¥U®É¶¡
- 2013-10-24
- ³Ì«áµn¿ý
- 2024-3-28
|
¦^´_ 1# jsc0518
¦Û¤v¿ý¤@¤U¥¨¶°¡A¾Þ§@¤@¤U±K½X«OÅ@¡A´N·|¦³Ãþ¦ü- Sub Macro1()
- '
- ' Macro1 Macro
- ' AMD945 ¦b 2017/6/6 ¿ý»sªº¥¨¶°
- '
- '
- ActiveWorkbook.Password = "abcd"
- ActiveWorkbook.RemovePersonalInformation = True
- ChDir "C:\Users\AMD945\Desktop"
- ActiveWorkbook.SaveAs Filename:="C:\Users\AMD945\Desktop\1111.xls", _
- FileFormat:=xlNormal, Password:="abcd", WriteResPassword:="", _
- ReadOnlyRecommended:=False, CreateBackup:=False
- End Sub
½Æ»s¥N½X ªºcode
±µ¤U¨Ó´N«Ü®e©ö§ï¤F
±N³o¦æ§ï¦¨³o¼Ë´N¥i¥H
dst_book.SaveAs "d:\" & Cells(i, 2).Value & ".xls", _
FileFormat:=xlNormal, Password:="abcd", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False
'«O¦s¦bd:\¡A¤å¥ó¦W¬O³æ¤¸®æ(i,2)ªº¤º®e¡A°ÆÀɦW .xlsx |
|
¤½¶}¸gÅç¡A³Ð³y´¼¼z¡]§Ú¤S¤£¾a³o¹L¬¡¡^
|
|
|
|
|
- ©«¤l
- 455
- ¥DÃD
- 111
- ºëµØ
- 0
- ¿n¤À
- 563
- ÂI¦W
- 234
- §@·~¨t²Î
- Windows 10
- ³nÅ骩¥»
- Office 2019
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2013-11-7
- ³Ì«áµn¿ý
- 2024-11-25
|
¦^´_ 2# eigen
·PÁ±zªº¦^ÂÐ
§Ú§âµ{¦¡½X§ï¦¨
'dst_book.SaveAs "d:\" & Cells(i, 2).Value & ".xlsx" '«O¦s¦bd:\¡A¤å¥ó¦W¬O³æ¤¸®æ(i,2)ªº¤º®e¡A°ÆÀɦW .xlsx
dst_book.SaveAs "d:\" & Cells(i, 2).Value & ".xlsx", _
FileFormat:=xlNormal, Password:="abcd", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False
dst_book.Close 'Á`ªí¤¤¨C¦æ²Ä2ӳ椸®æ¼Æ¾Ú¬°¡u©m¦W¡v¡A¥H³oÓ¤Hªº¡u©m¦W¡v¬°¾É¥X¤å¥ó¦W¡A¤ñ¦p¡u±i¤T.xlsx¡v
¦ý¥X²{¿ù»~°T®§ --> 400 |
|
Just do it.
|
|
|
|
|
- ©«¤l
- 455
- ¥DÃD
- 111
- ºëµØ
- 0
- ¿n¤À
- 563
- ÂI¦W
- 234
- §@·~¨t²Î
- Windows 10
- ³nÅ骩¥»
- Office 2019
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2013-11-7
- ³Ì«áµn¿ý
- 2024-11-25
|
¦^´_ 2# eigen
¥t¥~¡A§Ú¬O·Q»¡¦A¤À©îexcel¥t¦s·sªºÀÉ®×®É
excel VBA ¬O¥i¥HÀ°§Ú¶¶«K¥[¤W"JÄæ"¤ºªº±K½X
¦p : excel ¦s¦¨"®õÀA.xlsx"¡A·í§Ú¤@¶}±Ò"®õÀA.xlsx"®É¡A¥L·|¥s§Ú¿é¤J±K½X"123456789"
|
-
-
Noname.jpg
(29.8 KB)
|
Just do it.
|
|
|
|
|
- ©«¤l
- 8
- ¥DÃD
- 5
- ºëµØ
- 0
- ¿n¤À
- 63
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN7
- ³nÅ骩¥»
- 2007
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2017-3-14
- ³Ì«áµn¿ý
- 2023-8-21
|
¥»©«³Ì«á¥Ñ macro0029 ©ó 2017-6-22 13:18 ½s¿è
¦^´_ 1# jsc0518
¥i¥H°Ñ¦Ò¬Ý¬Ý¬O¤£¬O§A»Ýnªº
http://download.ithome.com.tw/article/index/id/2187 |
|
|
|
|
|
|
- ©«¤l
- 163
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 170
- ÂI¦W
- 0
- §@·~¨t²Î
- Window 7
- ³nÅ骩¥»
- Office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-9-5
- ³Ì«áµn¿ý
- 2022-7-20
|
|
|
|
|
|
|
- ©«¤l
- 455
- ¥DÃD
- 111
- ºëµØ
- 0
- ¿n¤À
- 563
- ÂI¦W
- 234
- §@·~¨t²Î
- Windows 10
- ³nÅ骩¥»
- Office 2019
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2013-11-7
- ³Ì«áµn¿ý
- 2024-11-25
|
¦^´_ 5# macro0029
Hi ·PÁ±zªº¦^´_§Y´£¨Ñªººô§}¡A§Ú¦b¸Õ¸Õ¬Ý |
|
Just do it.
|
|
|
|
|
- ©«¤l
- 455
- ¥DÃD
- 111
- ºëµØ
- 0
- ¿n¤À
- 563
- ÂI¦W
- 234
- §@·~¨t²Î
- Windows 10
- ³nÅ骩¥»
- Office 2019
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2013-11-7
- ³Ì«áµn¿ý
- 2024-11-25
|
¦^´_ 6# Kubi
Hi §Aªº»yªk½T©w¥i¥H©î¤ÀÀɮפΥ[±K
¯uªº¤Ó´Î¤F¡AÁÂÁ§A! |
|
Just do it.
|
|
|
|
|
- ©«¤l
- 455
- ¥DÃD
- 111
- ºëµØ
- 0
- ¿n¤À
- 563
- ÂI¦W
- 234
- §@·~¨t²Î
- Windows 10
- ³nÅ骩¥»
- Office 2019
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2013-11-7
- ³Ì«áµn¿ý
- 2024-11-25
|
¦^´_ 6# Kubi
Hi ·Q¸ò±z½Ð±Ð¡A¬Oþ¤@¬q»yªk¬O¥i¥H¥[¤W±K½Xªº?
·P®¦! |
|
Just do it.
|
|
|
|
|
- ©«¤l
- 163
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 170
- ÂI¦W
- 0
- §@·~¨t²Î
- Window 7
- ³nÅ骩¥»
- Office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-9-5
- ³Ì«áµn¿ý
- 2022-7-20
|
¦^´_ 9# jsc0518
1.¥ý§â J Ä檺±K½X¦s¤J pw ÅܼƤ¤¡C
pw = Sheets("Sheet1").Cells(r, 10).Value
2.±N§@¥Î¤¤ªº¬¡¶Ã¯¦sÀÉ¡A¦P®É§âpw±K½X©ñ¤J¨ì«á±ªºPassword°Ñ¼Æ¤¤¡A¥H«á¶}±Ò¦¹¬¡¶Ã¯¥²¶·n¿é¤J±K½X¤~¯à¶}±Ò¡C
ActiveWorkbook.SaveAs mypath & myfilename & ".xlsx", Password:=pw |
|
|
|
|
|
|