¦p¦ó§Q¥ÎVBA¨Ó¹F¨ì "³sµ²" ®ÄªG?
- ©«¤l
- 95
- ¥DÃD
- 24
- ºëµØ
- 0
- ¿n¤À
- 118
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- Office 2003
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2015-11-10
- ³Ì«áµn¿ý
- 2020-5-25
|
¦p¦ó§Q¥ÎVBA¨Ó¹F¨ì "³sµ²" ®ÄªG?
°ÝÃD
¦p¦ó§Q¥ÎVBA¨Ó¹F¨ì "³sµ²" ®ÄªG?
¸Ô²Ó°ÝÃD¤º®e
¨Ï¥ÎÀɪº¤u§@ªía ©M קïÀɪº¤u§@ªíA¡A¤º®e¬O§¹¥þ¤@¼Ò¤@¼Ë¡A
¦]¬°¬O§Q¥Î='C:\Documents and Settings\®à±\§Q¥ÎVBA§ó·s³sµ²\קï¸ê®Æ§¨\[קïÀÉ.xls]¤u§@ªíA'!A1
ªº¤½¦¡¨Ó³sµ²¨âÓ¤£¦P¸ô®|ªº¬¡¶Ã¯¤u§@ªí¤º®e¡A
¤£ª¾¦³¨S¿ìªk§ï§Q¥ÎVBA¨Ó¹F¨ì³oºØ®ÄªG¡A(VBA¸Ì±½ÐÀ°§Úµù©úקï¸ô®|ªº¦a¤è)¡A
§Ú·Qn¥´¶}¬¡¶Ã¯´N·|¦Û°Ê§ó·sקïÀɪº³sµ²¤º®e¦Ó¶Ç¨ì¨Ï¥ÎÀÉ¡F
¥t¥~¦pªG¨S¦³¤º®e¡A¥i¥H¤£nÅã¥Ü0¦Ó¬Oºû«ùªÅ¥Õ¶Ü?
¥t¥~¦pªG¹³¬O¤u§@ªíB & b¡A¦³¨î½d³òªºÅª¨ú¨Ó·½¡AVBA¤S¸Ó¦p¦ó¼g©O?
¥H¤W°ÝÃD¡A½Ð¤j¤j«ü±ÐÀ°¸Ñ¤F¡IÁÂÁ¡I
¤U¸ü»¡©úÀÉ
¦p¦ó§Q¥ÎVBA§ó·s³sµ².rar (9.36 KB)
|
|
|
|
|
|
|
- ©«¤l
- 95
- ¥DÃD
- 24
- ºëµØ
- 0
- ¿n¤À
- 118
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- Office 2003
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2015-11-10
- ³Ì«áµn¿ý
- 2020-5-25
|
¦^´_ 21# ã´£³¡ªL
ÁÂÁÂã¤j«ü±Ð¡A¦³®É¶¡ªº¸Üªº½T¦Û¤v´ú¸Õ»·¤ñ¶K¤W¦¬Ã¬ªº¦h¡A¤]«Ü¸r¼}§A̯à¥Î±M·~´À¥L¤H¸Ñµª¡A³o¬O§ÚÌ·s¤â§V¤Oªº¥Ø¼Ð¡A¦A¦¸ÁÂÁ¸ÑÃD¡C |
|
|
|
|
|
|
- ©«¤l
- 2834
- ¥DÃD
- 10
- ºëµØ
- 0
- ¿n¤À
- 2890
- ÂI¦W
- 0
- §@·~¨t²Î
- ¡e²¤¡f
- ³nÅ骩¥»
- ¡e²¤¡f
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¡e²¤¡f
- µù¥U®É¶¡
- 2013-5-13
- ³Ì«áµn¿ý
- 2024-11-25
|
¦^´_ 20# RCRG
Set xB = Workbooks.Open(xFile, ReadOnly:=True)
xB.Sheets("¤u§@ªíA").Protect "123"
With MyB.Sheets("¤u§@ªía")
¡@¡@.Unprotect "123"
¡@¡@xB.Sheets("¤u§@ªíA").[A1:H500].Copy .[A1]
¡@¡@.Protect "123"
End With
¡@
xB.Sheets("¤u§@ªíB").Protect "123"
With MyB.Sheets("¤u§@ªíb")
¡@¡@.Unprotect "123"
¡@¡@xB.Sheets("¤u§@ªíB").[AA1:AB20].Copy .[AA1]
¡@¡@.Protect "123"
End With
xB.Close 0
¬JµM¤wª¾»yªk¡A¬°¦ó¤£¦Û¤v¥h¸Õ§@¡H
³oVBA´N¬On¦Û¤v°Ê¤â¥h¸Õ§@¡A±q¿ù»~¤¤¥h×¥h§ï¡A¤~¯à¤F¸Ñ¨ä¾÷¨î¡A
¥u¥Î°Ý¨Óªºª½±µ¥h¶K¥Î¡A¥Ã»·¾Ç¤£¤F¡I¡I¡I |
|
|
|
|
|
|
- ©«¤l
- 95
- ¥DÃD
- 24
- ºëµØ
- 0
- ¿n¤À
- 118
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- Office 2003
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2015-11-10
- ³Ì«áµn¿ý
- 2020-5-25
|
¦^´_ 19# ã´£³¡ªL
ì¨Ó¦p¦¹¡A"¤£¤@©w¬O¥Ø¼ÐÀɩΨÓìÀÉ" ³o¥y´£¿ô¤F§Ú;
¨º¥i¥H§ïÀ°§Ú¼g¦¨¶K¤W¥Ø¼ÐÀÉ«e¡A¥ý¸Ñ¶}¥Ø¼ÐÀɪº«OÅ@¡A¦A¶K¤W¥Ø¼ÐÀÉ¡A³Ì«á¦A«ì´_¥Ø¼ÐÀɪº«OÅ@¶Ü? |
|
|
|
|
|
|
- ©«¤l
- 2834
- ¥DÃD
- 10
- ºëµØ
- 0
- ¿n¤À
- 2890
- ÂI¦W
- 0
- §@·~¨t²Î
- ¡e²¤¡f
- ³nÅ骩¥»
- ¡e²¤¡f
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¡e²¤¡f
- µù¥U®É¶¡
- 2013-5-13
- ³Ì«áµn¿ý
- 2024-11-25
|
¦^´_ 18# RCRG
¢°¡D¥ý¥h§Ë²M·¡¡@ActiveSheet¡@¬O¤°»ò·N«ä¡H¡@¡@¡e·í«e¤u§@ªí¡f¡A¥¦¤£¤@©w¥Nªí¬O¨Ó·½ªí©Î¥Ø¼Ðªí
¢±¡D½Æ»s®É¡A¨Ó·½ªíÀ³¬O«OÅ@¡A¥Ø¼Ðªí¬O¥¼«OÅ@¡A¤~¯à¥¿±`°µ¡e¶K¤W¡f¡A
¡@¡@¥i¥ý¤â°Ê¥h°µ¤@¦¸¡e½Æ»s¡D¶K¤W¡f¸Õ¸Õ´Nª¾¹D
¡@ |
|
|
|
|
|
|
- ©«¤l
- 95
- ¥DÃD
- 24
- ºëµØ
- 0
- ¿n¤À
- 118
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- Office 2003
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2015-11-10
- ³Ì«áµn¿ý
- 2020-5-25
|
¦^´_ 17# ã´£³¡ªL
¦pªG¨Ó·½ÀÉ( קïÀÉ)»P¥Ø¼ÐÀÉ(¨Ï¥ÎÀÉ)³£³Q«OÅ@µÛ¡A¨º»òVBA§Ú¦Û¤v§ï¦¨¦p¤U¡A¦ý¥Î°_¨Ó·Pı¦³ÂI©Ç©Çªº¡A¦n¹³¦³®É·|½Æ»s¦¨¥\¡A¦³®É·|¨S½Æ»s¨ì¡A¬O¨º¨à¦³°ÝÃD¶Ü?
Private Sub Workbook_Open()
Dim MyB As Workbook, xB As Workbook, xFile$
Set MyB = ThisWorkbook
xFile = ThisWorkbook.Path & "\קï¸ê®Æ§¨\קïÀÉ.xls" '¸ô®|ÀɦW¦Û¦æקï
Application.ScreenUpdating = False
Set xB = Workbooks.Open(xFile, ReadOnly:=True)
ActiveSheet.Unprotect "123" '¥ý¨ú®ø«OÅ@
xB.Sheets("¤u§@ªíA").[A1:H500].Copy MyB.Sheets("¤u§@ªía").[A1]
xB.Sheets("¤u§@ªíB").[AA1:AB20].Copy MyB.Sheets("¤u§@ªíb").[AA1]
xB.Close 0
ActiveSheet.Protect "123" '«·s³]©w«OÅ@
End Sub |
|
|
|
|
|
|
- ©«¤l
- 2834
- ¥DÃD
- 10
- ºëµØ
- 0
- ¿n¤À
- 2890
- ÂI¦W
- 0
- §@·~¨t²Î
- ¡e²¤¡f
- ³nÅ骩¥»
- ¡e²¤¡f
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¡e²¤¡f
- µù¥U®É¶¡
- 2013-5-13
- ³Ì«áµn¿ý
- 2024-11-25
|
¦^´_ 16# RCRG
«ö¶s¦³¤H·|©ñ¦b¸ê®Æ°Ï¶Ü¡H
¥i¥ý±N¨Ó·½¤u§@ªí³]¬°«OÅ@¡A¶K¦n«á¦A¸Ñ°£«OÅ@¡]«ö¶s¶·³]¬°¡ÐÂê©w¡^
With xB.Sheets("¤u§@ªíA")
.Protect
.[A1:H500].Copy MyB.Sheets("¤u§@ªía").[A1]
.UnProtect
End With |
|
|
|
|
|
|
- ©«¤l
- 95
- ¥DÃD
- 24
- ºëµØ
- 0
- ¿n¤À
- 118
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- Office 2003
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2015-11-10
- ³Ì«áµn¿ý
- 2020-5-25
|
¦^´_ 14# ã´£³¡ªL
©Ò¥Hã¤jªºVBA¬O®M¥Î ½Æ»s¶K¤W ªº¤èªkÅo?
¨º§Ú·Q¤F¸Ñ¸Ô²ÓªºVBA¤º®e¬O 1. ½Æ»s¨Ó·½ª½±µ¶K¤WÂл\¥Ø¼Ð
ÁÙ¬O 2. ½Æ»s¨Ó·½¡A²M°£¥Ø¼Ð¤º®e¡A¦A¶K¤W¥Ø¼Ð
¬OþºØ¼Ò¦¡©O? ¦]¬°¦pªG¬O²Ä1Ó¼Ò¦¡¡A¨º¥Ø¼Ð¥»¨Ó¦³VBA«ö¶s¡A¬O¤£¬O´NµLªkÂл\VBA«ö¶s¤F
¦]¬°ã¤jªºvba¦pªG¨Ó·½¦³vba«ö¶s¦n¹³¤]·|¤@¨Ö½Æ»s¡A©Ò¥H¤£ª¾¹D·|¤£·|¨C¶}Àɤ@¦¸´N½Æ»s¶K¤W¶V¨Ó¶V¦h«ö¶s¹L¥h |
|
|
|
|
|
|
- ©«¤l
- 95
- ¥DÃD
- 24
- ºëµØ
- 0
- ¿n¤À
- 118
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- Office 2003
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2015-11-10
- ³Ì«áµn¿ý
- 2020-5-25
|
¦^´_ ML089
¬°¤°»ò§Ú½d³ò¦Û¤v§ï¦¨¦p¤U¡AVBAÁÙ¬O·|¸õ¥X°ÝÃDµøµ¡©O
'VBAµ{¦¡©ñ¦b ¨Ï¥ÎÀÉ.XLS¤¤ ...
RCRG µoªí©ó 2016-1-25 12:22
¦^´_ 13# ML089
§Ú¤j·§§ä¨ì°ÝÃD©Ò¦b¤F¡A¦n¹³¬On§â²£¥Íªº°}¦C¤½¦¡¾ãÓ²¾°£¡A¤~·|¥¿±`¡F
¤]´N¬O»¡¨Ï¥ÎÀɸ̡A¤£¯à¦³¸ò¤W¤@¦¸¤£¦P³sµ²ªº°}¦C¤½¦¡¡A¦³ªº¸Ü»Ý¥þ³¡²¾°£¡AÅý¥L±qªÅ¥Õ¶¤¤¦A¶]·sªº³sµ²¥X¨Ó¡A¤~¤£Pµo¥Í²§±`¡C
¥H¤W¬O§Ú¨Ï¥ÎM¤jª©ªº¤ß±o¡A¤]«D±`ÁÂÁ±z²Ä¤@®É¶¡¬°§Ú¸Ñµª¡C |
|
|
|
|
|
|
- ©«¤l
- 2834
- ¥DÃD
- 10
- ºëµØ
- 0
- ¿n¤À
- 2890
- ÂI¦W
- 0
- §@·~¨t²Î
- ¡e²¤¡f
- ³nÅ骩¥»
- ¡e²¤¡f
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¡e²¤¡f
- µù¥U®É¶¡
- 2013-5-13
- ³Ì«áµn¿ý
- 2024-11-25
|
½Æ»s¤º®e§t®æ¦¡¤Îµù¸Ñ, ¨S¤°»ò¤è«Kªk, ¦Ñ¹ê¥Î½Æ»s¶K¤W§a!!
Private Sub Workbook_Open()
Dim MyB As Workbook, xB As Workbook, xFile$
Set MyB = ThisWorkbook
xFile = ThisWorkbook.Path & "\קï¸ê®Æ§¨\קïÀÉ.xls" '¸ô®|ÀɦW¦Û¦æקï
Application.ScreenUpdating = False
Set xB = Workbooks.Open(xFile, ReadOnly:=True)
xB.Sheets("¤u§@ªíA").[A1:H500].Copy MyB.Sheets("¤u§@ªía").[A1]
xB.Sheets("¤u§@ªíB").[AA1:AB20].Copy MyB.Sheets("¤u§@ªíb").[AA1]
xB.Close 0
End Sub
¨Ó·½Àɤâ°Ê¶}±Ò¦³¦h§Ö, ³oµ{¦¡´N¤@¼Ëªº§Ö, ¤Ï¤§¥çµM~~ |
|
|
|
|
|
|