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

½Ð°Ý2010¿é¤J¤é´Á

½Ð±Ð­n¦p¦ó­×§ï¤~¯à¦b2Äæ¥H¤W¨Ï¥Î¡A¤]´N¬O»¡»Ý­n¨Ï¥Î³o­Ó¥\¯à¦b¦h­Ó¬Û¾F©Î¤£¬Û¾FªºÄæ¦ì¨Ï¥Îªº³]©w¤è¦¡? ·P®¦~!

TOP

½Ð±Ð­n¦p¦ó­×§ï¤~¯à¦b2Äæ¥H¤W¨Ï¥Î¡A¤]´N¬O»¡»Ý­n¨Ï¥Î³o­Ó¥\¯à¦b¦h­Ó¬Û¾F©Î¤£¬Û¾FªºÄæ¦ì¨Ï¥Îªº³]©w¤è¦¡? ·P®¦ ...
Rachel µoªí©ó 2011-10-1 13:50

­Y¬°¤£¯S©wÀx¦s®æ®É :
  1. Private Sub Worksheet_SelectionChange(ByVal Target As Range)
  2.   With Target
  3.     If .Column = 2 Or .Column = 3 Then
  4.       Calendar1.Visible = True
  5.     Else
  6.       Select Case "C" + Trim(.Column) + "R" + Trim(.Row)
  7.       Case "C1R3"
  8.            ' ===== ÂIÀ» A3 «áªº³B²z°Ê§@ =====
  9.       Case "C5R12"
  10.            ' ===== ÂIÀ» E12 «áªº³B²z°Ê§@ =====
  11.       Case Else
  12.            ' ===== ÂIÀ» ¨ä¥L Àx¦s®æ«áªº³B²z°Ê§@ =====
  13.         Calendar1.Visible = False
  14.       End Select
  15.     End If
  16.   End With
  17. End Sub
½Æ»s¥N½X

TOP

¦^´_ 12# luhpro

«D±`·P®¦¤j¤jªº¦^ÂÐ~! ¦ý·Q¦A½Ð±Ð±zªº¬O¦pªG¬O6±Æ¾ãªºÄæ¦ì»Ý­n¨Ï¥Î¤W¤ë¾ä±±¨î¶µ¡Aµ{¦¡½X¸Ó¦p¦ó­×§ï©O?
¨Ò¦p¡G­n³]©w¦bÄæ¦ì   B,  C,  D,  E,  F,  D¤U©Ò¦³ªºÄæ¦ì³£¥i¥Hª½±µÂI¿ï¨Ï¥Î¡C

·P®¦~!

TOP

¦^´_  luhpro
¦ý·Q¦A½Ð±Ð±zªº¬O¦pªG¬O6±Æ¾ãªºÄæ¦ì»Ý­n¨Ï¥Î¤W¤ë¾ä±±¨î¶µ¡Aµ{¦¡½X¸Ó¦p¦ó­×§ï©O?
¨Ò¦p¡G­n³]©w¦bÄæ¦ì   B,  C,  D,  E,  F,  D¤U©Ò¦³ªºÄæ¦ì³£¥i¥Hª½±µÂI¿ï¨Ï¥Î¡C
Rachel µoªí©ó 2011-10-8 01:38

¶â..., ¦³¨âºØ¼gªk :

  03. If .Column > 1 and .Column < 8 Then

©Î (½Õ¾ã ²Ä 3 ¦æ ¨ì ²Ä 5 ¦æ ¤Î ²Ä 15 ¦æ ªº¤º®e)

  ­ì 03. Select Case .Column
           Case 2 To 7
  ­ì 04.     Calendar1.Visible = True
           Case Else
         End Select
  ­ì 05. (Else §R°£)
  ­ì 15. (End If §R°£)

²Ä¤@ºØ¤è¦¡¾A¦X "³æ¤@²Õ" ³sÄòÄæ¦ì½d³ò ªº³B²z,
¦Ó²Ä¤GºØ¤è¦¡«h¼u©Ê¤ñ¸û¤j. (¥Îªk½Ð°Ñ¾\ VBA»¡©ú -> Select Case ³¯­z¦¡)

¤ñ¸û»Ý­n¯d·Nªº¬O :

²Ä 1 ºØ¼gªk¤¤¦]¬° ²Ä 3 ¦æ »P ²Ä 6 ¦æ ¤¬¥¸,(Else ¥\¯àµ¥¦P Not)
  03. If .Column > 1 and .Column < 8 Then
  04.   Calendar1.Visible = True
  05. Else
  06.   Select Case "C" + Trim(.Column) + "R" + Trim(.Row)

  14.   End Select
  15. End If
©Ò¥H­Y¨âªÌ¦³ ­«Å|ªº°Ï°ì ¥B³£À³ IJµo¨ì±ø¥ó ®É,
©³¤U²Ä 6 ¦æ¤¤ªº«ü¥O¥Ã»·³£¤£·|°õ¦æ¨ì.

¦Ó²Ä¤GºØ¼gªk «h¤£½×«e­±¬O§_¦³°õ¦æ,
¥u­n±ø¥ó²Å¦X·Ó¼Ë·|°õ¦æ¨ì,
¦³¥i¯à·|¥X²{ °õ¦æ¨â¦¸ ªº±¡§Î,
¬GÀ³¯d·N½d³ò¬O§_¦³­«Å|¦Ó»Ý°µ¨Ò¥~³B²z.

TOP

§Ú¦b¦w¸Ë®M¥ó®É, ¥X²{¾ä®M¥ó¤w¸g¦s¦b, ¤£»Ý¦w¸Ë,
½Ð°Ý§Ú¥H¦b¨º¸Ì¦Û¨ì³o­Ó±±¨î¥ó©Î¦p¨Ï¥Î?
PETER
²³æ, ´N¬O³Ì¦n

TOP

¥»©«³Ì«á¥Ñ zamamilo ©ó 2012-5-3 23:55 ½s¿è

°ª¤â¤j¤j,

  §Úªºª©¥»¬O2010ª©¤]¦³¦w¸Ëaccess2010
¦ý°õ¦æ®É·|¥X²{

°õ¦æ¶¥¬q¿ù»~¡¦424¡¦
¦¹³B»Ý­nª«¥ó


§Úªºµ{¦¡¦p¤U
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Select Case ActiveCell.Address
    Case Is = "$I$5"
        Calendar1.Visible = True: Calendar1 = Date
        Calendar1.Top = ActiveCell.Top
        Calendar1.Left = ActiveCell.Left
    Case Is = "$B$76"
        Calendar2.Visible = True
        Calendar2.Top = ActiveCell.Top
        Calendar2.Left = ActiveCell.Left
        ActiveCell.Select
    Case Is = "$B$77"
        Calendar2.Visible = True
        Calendar2.Top = ActiveCell.Top
        Calendar2.Left = ActiveCell.Left
    Case Is = "$B$78"
        Calendar2.Visible = True
        Calendar2.Top = ActiveCell.Top
        Calendar2.Left = ActiveCell.Left
    Case Is = "$B$79"
        Calendar2.Visible = True
        Calendar2.Top = ActiveCell.Top
        Calendar2.Left = ActiveCell.Left
    Case Is = "$B$80"
        Calendar2.Visible = True
        Calendar2.Top = ActiveCell.Top
        Calendar2.Left = ActiveCell.Left
    Case Is = "$B$81"
        Calendar2.Visible = True
        Calendar2.Top = ActiveCell.Top
        Calendar2.Left = ActiveCell.Left

End Select

¥i§_·Ð½Ð¤j¤j¨ó§U¤p§Ì

§Ñ¤F¸ò¦U¦ì¤j¤j³ø§i,³o¬qµ{¦¡·í®É¬O¦b excel 2003ª©¤U§¹¦¨¥B°õ¦æokªº,¦ý¨ì¤Fexcel2010®É¤~·|¥X²{
°õ¦æ¶¥¬q¿ù»~¡¦424¡¦
¦¹³B»Ý­nª«¥ó

¤£ª¾­n§ï¨º¸Ì¡C¯à§_½Ð°ª¤â¤j¤j«ü¾É¤@¤U¡C

TOP

¦^´_ 16# mingtel


    play.gif
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 2# Hsieh

Hsiehª©¥D±z¦n¡F
½Ð°Ý¦¹¤ë¾ä±±¨î¶µ¬O§_¦³¨ä¥L¦WºÙ
¦]¬°§Úªº±±¨î¶µ¥Ø¤º¥u¦³Microsoft Date and Time Picker Control 6.0¡]SP6¡^¡A¦¹¤ë¾ä±±¨î¶µ¦WºÙ
­n¦p¦ó¤~¯à´«»s¦¨ª©¥D±zªº¦¹ºØ¤ë¾ä±±¨î¶µ¤¤¤å¦WºÙ

TOP

¥»©«³Ì«á¥Ñ luhpro ©ó 2014-9-2 21:10 ½s¿è

¦^´_ 18# jackson7015
ºô¸ô¤W§ä¤@¤U´N¦³¤F:
½Ð°Ý¤@¤Uexcelªº±±¨î¤u¨ã½c"¤ë¾ä"±±¨î¶µ¤£¨£¤F  

·L³nªº¤U¸üºô­¶:
ACC97: Microsoft Access 97 ActiveX ±±¨î¶µ½d¨Ò¸ê®Æ®w¥i¥Î¦b¤U¸ü¤¤¤ß
¸ÑÀ£ÁY«á¨ä¤¤ªº Mscal.ocx ÀÉ®×´N¥]§t ¤ë¾ä±±¨î¶µ

TOP

¦^´_ 19# luhpro
·PÁÂluhpro¤j¤jªº¦^ÂÐ

¤§«e´N¦³·j´M¹L¬ÛÃö°ÝÃD¡A¦ý³¡¤À¸Ñ¨M¤è¦¡¬Oª½±µ¤U¸ü¸Ó¤ë¾ä±±¨î¶µ¡A¦p
Office 2010 ¤ë¾ä±±¨î¶µ·s¼W
¤W­z½d¨Ò¥X²{ªº±±¨î¶µ¥Ø´N¬O§Ú°ÝÃD¤¤ªºMicrosoft Date and Time Picker Control 6.0¡]SP6¡^¡A¤]¬O¤ë¾ä±±¨î¶µªº¤@ºØ
¦ý¬O¯¸¤W¤À¨Éªº±±¨î¶µ¥Ø½s¼gªº¤½¦¡¡A³£¬O¨ä¥Lªº¤ë¾ä±±¨î¶µ¡A©Ò¥H¤~·Q½Ð±Ð¤¤¤å¼ÐÃDªº¤ë¾ä±±¨î¶µ¦p¦ó¤U¸ü

¥D­n°ÝÃD¬O¦]¬°§Ú¨S¦³¦w¸ËAccess 2007
©Ò¥H­è­è°®¯Üª½±µ¤U¸üAccess Runtime¡A´N¯à¥X²{¤¤¤å¼ÐÃDªº¤ë¾ä±±¨î¶µ12.0
¦p¦³¦¹°ÝÃDªºª©¤Í¤]¥i¥H¨Ï¥Î¦¹ºØ¤è¦¡¸Ñ¨M

TOP

        ÀR«ä¦Û¦b : ¯à¥I¥X·R¤ß´N¬OºÖ¡A¯à®ø°£·Ð´o´N¬O¼z¡C
ªð¦^¦Cªí ¤W¤@¥DÃD