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

[µo°Ý] EXCEL³]©w¬Y¤é´Á¨ìÀÉ®×µLªk¶}±Ò

[µo°Ý] EXCEL³]©w¬Y¤é´Á¨ìÀÉ®×µLªk¶}±Ò

¦U¦ì°ª¤â,½Ð°ÝEXCEL¬O§_¥i¥H³]©w·í¬Y­Ó¤é´Á¨ì®É,¬Y­ÓÀɮ׫hµLªk¶}±Ò©O? ÁÂÁÂ
¤p«B

¦^´_  hueywen_jia
    ¥t¥~¥i§_½Ð¦³Åv­­ªº¤j¤jÀ°§Ú§R°£§Úªþ¥óªºÀ£ÁYÀÉ©O(¦b²Ä¤G­¶¤U¤èWENWENWENWENW ...
hueywen_jia µoªí©ó 2015-5-16 00:39


¤U¦¸¤W¶Çªº½d¨ÒÀÉ®×,
¥i¥H°u±¡±N°Q½×¦ê¤¤¥Î¤£¨ìªº³¡¤À¤u§@ªí§R°£,
°Q½×·|¥Î¨ìªº¸ê®Æ¥i¥H°u±¡¨ú¥Î¥Nªí©Êªº¤å¦r,
­Y¬O¤H¦Wµ¥¥i¯àIJ¥Ç¨ì­Ó¸êªkªº¸ê®Æ«h°u¤©Mark(¨Ò¦p : ¤ýxx¡B§õ¤@¤@...µ¥)©Î¬O¥Î±i¤T¡B§õ¥|¡B¤ý¬ü¤kµ¥´À¥N,
µ½¥Î ½s¿è->¨ú¥N ¥\¯à´N¥i¥H«Ü¤è«K¹F¦¨¦¹¥Øªº,
¤£¹L­n¯d·N¾A·í¦w±Æ¦n¥ý«á¶¶§Ç,
¨Ò¦p­Y¥ý¥Î 5 ¨ú¥N 3,
¤§«á´N¤£¾A©y¥Î 7 ¨ú¥N 5.(¥i¯à·|¯}Ãa¸ê®Æªº°ß¤@©Ê)

Á`¤§­n´£¨Ñ«ç»ò¼Ë¤º®eªº½d¨ÒÀÉ®×­n¬Ý°Q½×ªº¥Øªº»P»Ý¨D.

TOP

¦^´_ 42# luhpro


   ²×©ó¦¨¥\¤F!!¡@·PÁ luhpro¡@ªº¤j¤O¨ó§U¡I¡@¤£Ä@¨ä·ÐªºÀ°§Ú¸Ñµª¡ã¦]¬°¥¨¶°ªº¤åªk¯uªº¤£·|¡A¤£´¿¾Ç¹L¡A³£¥u¦³¥Î¿ý»sªº¤è¦¡¨Ó¼g¥¨¶°¡A¯u¬O·P¿E¤£ºÉ¡I¡I¡@¦A¦¸ÁÂÁ§A¡I¡ã
¤p«B

TOP

¥»©«³Ì«á¥Ñ luhpro ©ó 2015-5-15 01:31 ½s¿è
¦^´_  luhpro
§Ú§â¥H¤U¦r¦ê³£©ñ¶i¥h¤F,³o¼Ë¤£¹ï¶Ü¡H½Ð¬Ý§Úªº¹Ï¤ù,³£¦³¶i¥h§r~  
Private Sub Work ...
hueywen_jia µoªí©ó 2015-5-14 21:07

©³¤U®ç¬õ¦â³o¤@¶ô  (§R°£¦Û¤v)µ{§Ç¹êÅé ¤]­n©ñ¶i¥h,
Workbook_Open ¤¤ Then «á­±ªº §R°£¦Û¤v «ü¥O¤~©I¥sªº¨ì ¸Óµ{§Ç ³á:

Public Sub §R°£¦Û¤v()

    ThisWorkbook.Saved = True

    ThisWorkbook.ChangeFileAccess Mode:=xlReadOnly

    Kill ThisWorkbook.FullName

    ThisWorkbook.Close SaveChanges:=False

End Sub


Private Sub Workbook_Open()

  If Date > #5/28/2115# Then
§R°£¦Û¤v  ' ¤µ¤Ñ¬°¦¹¤é´Á®É, §R°£¥»ÀÉ®×, ª`·N : ÀɮקR°£«áµLªk´_­ì, ´ú¸Õ®É½Ð°È¥²¥ý³Æ¥÷¥»ÀÉ®×.
End Sub

TOP

¦^´_ 40# luhpro


§Ú§â¥H¤U¦r¦ê³£©ñ¶i¥h¤F,³o¼Ë¤£¹ï¶Ü¡H½Ð¬Ý§Úªº¹Ï¤ù,³£¦³¶i¥h§r~  

Private Sub Workbook_Open()

  If Date > #5/11/2015# Then §R°£¦Û¤v

End Sub
¤p«B

TOP

¦^´_  luhpro
§Ú·Ó¨º¨Ç¦r¦êCOPY¶i¥h¤F,¥i¬O¥¦ÁÙ¬O¥X²{"½sĶ¿ù»~:¨S¦³©w¸q³o­ÓSub©ÎSunciton µM ...
hueywen_jia µoªí©ó 2015-5-12 21:13

¬O°Ú,
38# ³Ì¥½§À¦³»¡¤F:
¥B§A¤]­n§â Sub §R°£¦Û¤v ¨ì End Sub ³¡¤À Copy ¹L¥h,
¤£µM¤@¼Ë·|µo¥Í§ä¤£¨ì §R°£¦Û¤v µ{§Çªº¿ù»~.

TOP

¦^´_ 38# luhpro


   
§Ú·Ó¨º¨Ç¦r¦êCOPY¶i¥h¤F,¥i¬O¥¦ÁÙ¬O¥X²{"½sĶ¿ù»~:¨S¦³©w¸q³o­ÓSub©ÎSunciton µM«á¦b§R°£¦Û¤v¨º¤Ï¶Â¤F,¬O§ä¤£¨ì³o­Ó"§R°£¦Û¤v" ¶Ü
¤p«B

TOP

¥»©«³Ì«á¥Ñ luhpro ©ó 2015-5-11 23:38 ½s¿è
¦^´_  luhpro
§Ú·Ó±zªº¤è¦¡,¦ý«o¥X²{¦¹¹ï¸Ü®Ø
hueywen_jia µoªí©ó 2015-5-10 20:59

§Aªº Then «á­±¨S«ü¥O.

If...Then... «ü¥Oªº¨ä¤¤¨âºØ»yªk:
1.
If  ±ø¥ó¦¡ Then ­n°õ¦æªº«ü¥O

(¦¹ªk¬°·í±ø¥ó¦¨¥ß®É,
µ{¦¡·|°õ¦æ Then «á­±ªº«ü¥O,
§_«h¤£°õ¦æ¸Ó«ü¥O,
¥B¤£½×µ²ªG¦p¦ó°õ¦æ§¹²¦«á·|Ä~Äò°õ¦æ¤U¤@¦æªº«ü¥O,
·N§Y If ªº§PÂ_»P°õ¦æ¬O¦b¸Ó¦æ¶]§¹«á´N¤w¸gµ²§ô)

2.
If  ±ø¥ó¦¡ Then
   ­n°õ¦æªº«ü¥O
End If

(¦¹ªk¬°·í±ø¥ó¦¨¥ß®É,
µ{¦¡·|°õ¦æ Then ªº¤U¤@¦æª½¨ì End If «eªº¨C¤@¦æ«ü¥O,
·N§Y If ªº§PÂ_»P°õ¦æ¬O¦b¸Ó¦æ¶}©l°_,
¤@ª½¨ì End If «ü¥O¤~µ²§ô)

»Ý¯d·N¨âºØ»yªkªº®t§O,
Then «á­±¨S«ü¥O®É´N¤@©w­n¦³ End If
¤Ï¤§¥ç¦P.

¬Oªº,·í§A±ø¥ó¦¨¥ß«á¥u»Ý­n°õ¦æ¤@¦æ«ü¥O®É,¥Î²Ä 1 ºØ»yªk´N¥i¥H¤F,
­Y¬°¦h¦æ«hÀ³¥Î²Ä 2 ºØ»yªk.

¥t¥~,§A¦b®M¥Îªº®É­Ô,
À³¸Ó­n¥ý³£¥þ³¡ Copy ¹L¥h,
¦A¨Ì¾Ú§Aªº»Ý¨D°µ½Õ¾ã.

¨Ò¦p§A¥»¨Ó´N¦³ Private Sub Workbook_Open() ®É,
Copy ¹L¥h·|Åܦ¨¦³¨â­Ó Open µ{§Ç,
³o®É´N­n¸ÕµÛ§â¥¦­Ì¾ã¦X¦b¦P¤@­Ó Open µ{§Ç¤º,
¬Ý¬O­n«e«á©ñ,
ÁÙ¬O±N¨ä¤¤¤@­Óµ{§Ç´¡¦b¥t¤@­Óµ{§Çªº¤º³¡.
¦A§R±¼¦hªº¨º¨â¦æ Sub Workbook_Open »P End Sub.

°£«D§A½T¹ê¤w¸g¤F¸Ñ¤F¨º¨Ç«ü¥O¦¡¦b°µ¬Æ»ò,
¤£µM¤£«ØijÀH·N§R´î.

§¹¾ãªº¸Ó¦æ¬O:
If Date > #5/28/2115# Then §R°£¦Û¤v
§R°£¦Û¤v ¦b ' «e¤£¬O¦b¨ä«á,
©Ò¥H¥¦¬O¤@­Ó«ü¥O.
¥B§A¤]­n§â Sub §R°£¦Û¤v ¨ì End Sub ³¡¤À Copy ¹L¥h,
¤£µM¤@¼Ë·|µo¥Í§ä¤£¨ì §R°£¦Û¤v µ{§Çªº¿ù»~.

TOP

¦^´_ 36# hueywen_jia
³o¼Ëªºµo°Ý¤ÓÀH«K¤F  
§i¶D§A½sĶ¿ù»~¥B¦³»¡©ú¬°¦ó¤£¬Ý»¡©ú.VBAªº»¡©ú¯uªº¦³¨º»òÃø²z¸Ñ¶Ü?
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 35# luhpro

§Ú·Ó±zªº¤è¦¡,¦ý«o¥X²{¦¹¹ï¸Ü®Ø
   
1

µû¤À¤H¼Æ

    • GBKEE: ¤£»{¯u¾Ç²ßª÷¿ú -2
¤p«B

TOP

        ÀR«ä¦Û¦b : ­n¤ñ½Ö§ó¨ü½Ö¡D¤£­n¤ñ½Ö§ó©È½Ö¡C
ªð¦^¦Cªí ¤W¤@¥DÃD